/* Version: v1.6.1 | Archive Styles (shared styles moved to common.css) */
.cw-archive-hero {
  background: var(--cw-surface);
  border-bottom: 1px solid var(--cw-border);
}

.cw-archive-toolbar {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 252, 0.96));
  border: 1px solid rgba(215, 221, 232, 0.96);
  border-radius: 1.15rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.cw-archive-toolbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--cw-brand-rgb), 0), rgba(var(--cw-brand-rgb), 0.24), rgba(var(--cw-brand-rgb), 0));
}

.cw-archive-toolbar__eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--cw-brand);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cw-archive-toolbar__title {
  color: var(--cw-text);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.cw-form-label {
  color: var(--cw-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cw-form-select {
  min-height: 48px;
  border-color: rgba(203, 211, 224, 0.9);
  border-radius: 0.9rem;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--cw-text);
  font-size: 0.94rem;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cw-form-select:hover {
  border-color: rgba(var(--cw-brand-rgb), 0.24);
}

.cw-form-select:focus {
  border-color: rgba(var(--cw-brand-rgb), 0.42);
  box-shadow: 0 0 0 0.22rem rgba(var(--cw-brand-rgb), 0.10);
}

.cw-toolbar-reset {
  min-height: 48px;
  border: 1px solid rgba(var(--cw-brand-rgb), 0.18);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f7f0fa);
  color: var(--cw-brand);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cw-toolbar-reset:hover,
.cw-toolbar-reset:focus-visible {
  background: var(--cw-brand);
  border-color: var(--cw-brand);
  color: #fff;
  box-shadow: 0 14px 28px rgba(var(--cw-brand-rgb), 0.18);
  transform: translateY(-1px);
}

.cw-active-filters__label {
  color: var(--cw-text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cw-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(212, 218, 228, 0.95);
  border-radius: 999px;
  background: #fff;
  color: var(--cw-text-soft);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cw-filter-chip.is-active {
  border-color: rgba(var(--cw-brand-rgb), 0.16);
  background: rgba(var(--cw-brand-rgb), 0.06);
  color: var(--cw-brand);
}

.cw-filter-chip--clear {
  color: var(--cw-accent-strong);
}

.cw-filter-chip:hover,
.cw-filter-chip:focus-visible {
  border-color: rgba(var(--cw-brand-rgb), 0.26);
  background: rgba(var(--cw-brand-rgb), 0.09);
  color: var(--cw-brand);
  transform: translateY(-1px);
}

.cw-archive-summary__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--cw-text-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cw-archive-grid {
  align-items: stretch;
}


.cw-pagination-wrap {
  padding-top: 0.25rem;
}

.cw-pagination {
  gap: 0.55rem;
}

.cw-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(209, 215, 225, 0.94);
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.94);
  color: var(--cw-text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cw-pagination .page-item.active .page-link {
  border-color: var(--cw-brand);
  background: var(--cw-brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(var(--cw-brand-rgb), 0.26);
}

.cw-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
.cw-pagination .page-item:not(.active):not(.disabled) .page-link:focus {
  border-color: rgba(var(--cw-brand-rgb), 0.22);
  background: rgba(var(--cw-brand-rgb), 0.07);
  color: var(--cw-brand);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(var(--cw-brand-rgb), 0.10);
}

.cw-pagination .page-item.disabled .page-link {
  border-color: rgba(225, 229, 237, 0.96);
  background: rgba(245, 247, 250, 0.94);
  color: #a8b2c2;
  box-shadow: none;
}

.cw-empty-state {
  background: var(--cw-surface);
  border: 1px dashed var(--cw-border);
  border-radius: var(--cw-radius-lg);
}

@media (max-width: 575.98px) {
  .cw-archive-toolbar,
  .cw-archive-toolbar__title {
    font-size: 0.98rem;
  }

  .cw-form-select,
  .cw-toolbar-reset {
    min-height: 44px;
  }

  .cw-active-filters {
    gap: 0.5rem;
  }

  .cw-filter-chip {
    min-height: 32px;
    font-size: 0.76rem;
  }

  .cw-pagination {
    gap: 0.42rem;
  }

  .cw-pagination .page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    font-size: 0.86rem;
  }

  .cw-pagination .page-item:first-child .page-link,
  .cw-pagination .page-item:last-child .page-link {
    min-width: 82px;
  }
}
