.dl-section {
  background-color: rgba(var(--color-background));
}

.dl-section__inner {
  box-sizing: border-box;
}

.dl-section__content {
  padding-block-start: 0;
  padding-block-end: 0;
  min-width: 0;
  overflow: hidden;
}

.dl-tabs-wrapper {
  text-align: center;
  min-width: 0;
}

.dl-section__title {
  margin-block-start: var(--dl-title-mt, 0px);
  margin-block-end: var(--dl-title-mb, 32px);
  font-size: var(--dl-title-fs, 40px);
  font-weight: var(--dl-title-fw, 700);
  line-height: 1.2;
  text-align: center;
  color: rgba(var(--color-foreground));
}

.dl-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-block-end: 40px;
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  padding: 4px;
  border-radius: 83px;
  background: #f9fafb;
  width: fit-content;
  box-sizing: border-box;
}

.dl-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: rgba(var(--color-foreground));
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.dl-tabs__btn:hover {
  background: rgba(14, 20, 36, 0.06);
}

.dl-tabs__btn.is-active {
  background: #0e1424;
  color: #fff;
}

.dl-panel {
  display: none;
}

.dl-panel--active {
  display: block;
}

.dl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background: #F9FAFB;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease;
  min-height: 80px;
  box-sizing: border-box;
}

.dl-card:hover {
  background: #0E14240F;
}

.dl-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.dl-card__name {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: #0e1424;
  word-break: break-word;
  min-height: 24px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dl-card__date {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #666666;
}

.dl-card__icon {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
  background-image: var(--dl-icon);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 180ms ease;
}

.dl-card:hover .dl-card__icon {
  background-image: var(--dl-icon-hover);
}

@media (max-width: 991px) {
  .dl-section__title {
    font-size: var(--dl-m-title-fs, 28px);
    font-weight: var(--dl-m-title-fw, 700);
    margin-block-start: var(--dl-m-title-mt, 0px);
    margin-block-end: var(--dl-m-title-mb, 20px);
  }

  .dl-section__content {
    overflow: visible;
  }

  .dl-tabs-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dl-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .dl-tabs {
    justify-content: flex-start;
    margin-block-end: 16px;
    margin-inline: auto;
    background: none;
  }

  .dl-tabs__btn {
    flex-shrink: 0;
    font-size: 18px;
    padding: 6px 16px;
  }

  .dl-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dl-card {
    padding: 16px;
  }

  .dl-card__name {
    font-size: 16px;
    color: #0e1424;
    min-height: 2.4em;
  }
}
