/**
 * Downloads page styles.
 */

.downloads-page .page-header img {
  object-position: center top;
}

.downloads-section {
  background: var(--bs-light);
  scroll-behavior: smooth;
}

.downloads-filter-nav {
  margin-bottom: 0;
}

.downloads-search-wrap {
  margin-bottom: 1.5rem;
}

.downloads-search-wrap .form-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.downloads-search {
  transition: box-shadow var(--animation-duration-fast) ease;
  width: 100%;
  border-radius: var(--bs-border-radius);
}

.downloads-search .input-group-text,
.downloads-search .form-control {
  background-color: var(--bs-white);
  border-color: rgb(1 31 61 / 12%);
  min-height: 52px;
  transition: border-color var(--animation-duration-fast) ease;
}

.downloads-search .input-group-text {
  color: var(--color-muted-foreground);
  cursor: text;
  font-size: 20px;
  padding-inline: 1rem;
}

.downloads-search .form-control {
  color: var(--color-background-dark);
  font-size: 0.9375rem;
}

.downloads-search .form-control:focus {
  box-shadow: none;
}

.downloads-search:focus-within .input-group-text,
.downloads-search:focus-within .form-control {
  border-color: rgb(var(--brand-color-rgb) / 45%);
}

.downloads-search:focus-within {
  box-shadow: 0 0 0 0.2rem rgb(var(--brand-color-rgb) / 12%);
}

.downloads-list-sections {
  display: grid;
  gap: 1.5rem;
}

.downloads-list-shell {
  background: var(--bs-white);
  border: 1px solid rgb(1 31 61 / 10%);
  border-radius: var(--radius-md);
  box-shadow: var(--bs-box-shadow-sm);
  overflow: hidden;
  scroll-margin-top: calc(var(--inner-scroll-nav-sticky-top, 84px) + 96px);
}

.downloads-list-header {
  align-items: center;
  border-bottom: 1px solid rgb(1 31 61 / 9%);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.downloads-list-header h2 {
  color: var(--color-background-dark);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.downloads-list-header span {
  font-size: 14px;
  color: var(--color-muted-foreground);
}

.downloads-list {
  border-radius: 0;
}

.download-row {
  align-items: center;
  border-color: rgb(1 31 61 / 8%);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
}

.download-row:first-child,
.download-row:last-child {
  border-radius: 0;
}

.download-file-info,
.download-file-link {
  align-items: center;
  display: inline-flex;
  min-width: 0;
}

.download-file-info {
  gap: 0.7rem;
}

.download-file-link {
  color: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}

.download-file-icon {
  display: block;
  flex-shrink: 0;
  height: 28px;
  object-fit: contain;
}

.download-file-title {
  overflow-wrap: anywhere;
  text-transform: capitalize;
}

.download-file-link:hover {
  color: var(--brand-color);
}

.download-action {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 38px;
  padding-inline: 0.95rem;
}

.downloads-empty {
  color: var(--color-muted-foreground);
  font-size: 16px;
  margin: 0;
  padding: 1.4rem 1.25rem;
}

@media (width < 576px) {
  .downloads-list-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
