/* ===== Resource Download — Figma 30:13442 ===== */

.page-downloads {
  background: #f3f4f6;
}

.dl-main {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Breadcrumb */
.dl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hanken);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 16.8px;
  color: rgba(51, 51, 51, 0.7);
  padding: 40px 0 48px;
}

.dl-breadcrumb a {
  color: rgba(51, 51, 51, 0.7);
  transition: color 0.2s;
}

.dl-breadcrumb a:hover {
  color: var(--green);
}

.dl-breadcrumb .is-current {
  color: #333;
}

/* Search — centered, max 768px */
.dl-search {
  display: flex;
  align-items: stretch;
  max-width: 768px;
  margin: 0 auto 56px;
}

.dl-search__field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-height: 56px;
  padding: 0 17px 0 49px;
}

.dl-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.dl-search__input {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  color: #111827;
}

.dl-search__input::placeholder {
  color: #6b7280;
}

.dl-search__field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.12);
}

.dl-search__btn {
  flex-shrink: 0;
  margin-left: 8px;
  min-width: 0;
  height: auto;
  padding: 16.5px 40px 17.5px;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
  line-height: 20px;
  text-transform: uppercase;
  border-radius: 0;
}

/* Two-column layout */
.dl-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Filters sidebar */
.dl-filters {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.dl-filter-group__title {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--green);
  margin: 0 0 16px;
}

.dl-filter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  min-height: 20px;
}

.dl-check input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.dl-check__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dl-check__icon {
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dl-check.is-checked .dl-check__box,
.dl-check input:checked + .dl-check__box {
  width: 22px;
  height: 22px;
  background: var(--green);
  border-color: transparent;
}

.dl-check.is-checked .dl-check__icon,
.dl-check input:checked + .dl-check__box .dl-check__icon {
  opacity: 1;
}

.dl-check__label {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #374151;
}

.dl-filter-group--type .dl-check__label {
  font-weight: 500;
}

/* Results */
.dl-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-results__count {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #6b7280;
  margin: 0;
}

.dl-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.dl-card__info {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dl-card__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 40px;
  height: 24px;
  padding-right: 16px;
  box-sizing: border-box;
}

.dl-card__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  overflow: hidden;
}

.dl-card__icon img {
  position: absolute;
  inset: 10% 15%;
  width: auto;
  height: auto;
  max-width: none;
}

.dl-card__title {
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #333;
  margin: 0;
}

.dl-card__btn {
  flex-shrink: 0;
  padding: 8px 24px;
  background: #f3f4f6;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--green);
  transition: background 0.2s ease, color 0.2s ease;
}

.dl-card__btn:hover {
  background: #e5e7eb;
  color: var(--green);
}

/* Pagination */
.dl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.dl-pagination__arrow,
.dl-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid #c1c7d0;
  border-radius: 2px;
  background: #fff;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.7px;
  color: #41474f;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dl-pagination__arrow:hover,
.dl-pagination__page:hover {
  border-color: var(--green);
  color: var(--green);
}

.dl-pagination__page.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 700;
}

.dl-pagination__page.is-active:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

a.dl-pagination__arrow,
a.dl-pagination__page {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.dl-pagination__arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.dl-pagination__arrow img {
  display: block;
  width: 7.4px;
  height: 12px;
}

.dl-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 400;
  color: #41474f;
  opacity: 0.6;
  user-select: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .dl-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .dl-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dl-filters {
    position: static;
  }

  .dl-search {
    flex-direction: column;
    max-width: none;
  }

  .dl-search__btn {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .dl-main {
    padding-bottom: 56px;
  }

  .dl-breadcrumb {
    padding: 24px 0 28px;
  }

  .dl-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dl-card__btn {
    align-self: flex-start;
  }

  .dl-card__title {
    font-size: 16px;
    line-height: 24px;
  }

  .dl-pagination {
    flex-wrap: wrap;
    margin-top: 32px;
  }

  .dl-pagination__arrow,
  .dl-pagination__page,
  .dl-pagination__ellipsis {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}
