.snap-Download-list {
  --primary: #0d6efd;
  --accent: #00d2ff;
  --bg: #0b1220;
  padding: 1.25rem 0 2rem;
}

.snap-Download-filters {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.snap-Download-filters .filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.snap-Download-filters .filter {
  grid-column: span 1;
  min-width: 0;
}

.snap-Download-filters .filter--search {
  grid-column: span 2;
}

.snap-Download-filters .filter-actions {
  grid-column: 4;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  margin-top: 0;
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 1000px) {
  .snap-Download-filters .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-Download-filters .filter { grid-column: span 1; }
  .snap-Download-filters .filter--search { grid-column: span 2; }
  .snap-Download-filters .filter-actions {
    grid-column: span 2;
    grid-row: auto;
    justify-self: start;
  }
}
@media (max-width: 600px) {
  .snap-Download-filters .filter-row { grid-template-columns: 1fr; }
  .snap-Download-filters .filter,
  .snap-Download-filters .filter--search,
  .snap-Download-filters .filter-actions {
    grid-column: auto;
  }
}

.snap-Download-filters label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.snap-Download-filters input,
.snap-Download-filters select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
}

.btn-filter {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1rem;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.picker {
  position: relative;
  display: flex;
  gap: 0.35rem;
}

.picker input {
  flex: 1;
}

.picker-clear {
  width: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  cursor: pointer;
}

.picker-clear:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.picker-results {
  margin-top: 0.4rem;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

.picker-results button {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.picker-results button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.picker-results .picker-empty {
  padding: 0.6rem 0.75rem;
  opacity: 0.8;
}

.snap-Download-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.snap-Download-card {
  grid-column: span 4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem;
}

@media (max-width: 1000px) {
  .snap-Download-card { grid-column: span 6; }
}
@media (max-width: 600px) {
  .snap-Download-card { grid-column: span 12; }
  .snap-Download-card { flex-direction: column; }
}

.snap-Download-card .thumb {
  position: relative;
  /* Small portrait thumbnail (documents are typically portrait) */
  width: 92px;
  height: 130px;
  flex: 0 0 auto;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
}

@media (max-width: 600px) {
  .snap-Download-card .thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.414;
  }

  /* Fallback for browsers without aspect-ratio */
  @supports not (aspect-ratio: 1 / 1) {
    .snap-Download-card .thumb { padding-top: 141.4%; }
  }
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .snap-Download-card .thumb { padding-top: 0; }
}

.snap-Download-card .btn-download-action {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

.snap-Download-card .btn-download-action:hover {
  background: var(--primary);
  color: #fff;
}

.snap-Download-card .meta {
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.snap-Download-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.snap-Download-card p {
  margin: 0 0 0.75rem;
  opacity: 0.9;
}

.snap-Download-card .actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-details {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
}

.linklike {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
}

/* Downloads Categories section (after filters) */
.snap-Download-categories {
  margin-bottom: 1.25rem;
  padding-left: 1rem;
}

.snap-Download-categories__title {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.95;
  margin: 0 0 0.6rem;
}

.snap-Download-categories__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.35rem;
}

.snap-Download-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid lightgrey;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.snap-Download-cat-btn:hover {
  background: #f8f8f8;
  border-color: #ccc;
}

.snap-Download-cat-btn--parent {
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: #ffffff;
}

.snap-Download-cat-btn--parent:hover {
  background: #f8f8f8;
}

.snap-Download-cat-btn--child {
  position: relative;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem 0.35rem 1.1rem;
  background: #eee;
  border-color: #eee;
}

.snap-Download-cat-btn__branch {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 0.4rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0 3px;
  opacity: 0.7;
}

.snap-Download-cat-btn--active {
  background: #db0011 !important;
  border-color: #db0011 !important;
  color: #fff !important;
}

.snap-Download-cat-btn--active:hover {
  background: #c3000e !important;
  border-color: #c3000e !important;
  color: #fff !important;
  opacity: 0.95;
}

.snap-Download-categories__separator {
  width: 1px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  flex-shrink: 0;
}

.snap-Download-empty {
  padding: 2rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.snap-Download-pager {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.pager-btn, .pager-page {
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

.pager-page.active {
  background: rgba(255, 255, 255, 0.14);
}

.pager-btn.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.pager-ellipsis {
  opacity: 0.7;
  padding: 0 0.25rem;
}



