/* ==========================================================================
   downloads — grouped library of downloadable files. Each group has its own
   heading/sub-heading and a list of file rows; each row shows a colour-coded
   file-type badge, title, optional description/size and a download icon.
   ========================================================================== */

.biz-downloads {
  background-color: #fff;
  padding: clamp(1.0rem, 1.25rem + 1vw, 2rem) 0 clamp(2rem, 1.25rem + 1vw, 4rem) 0;
}
.biz-downloads--bg-muted { background-color: #f9fafb; }

.biz-downloads__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.biz-downloads__head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 5vw, 3rem);
}
.biz-downloads__title {
  color: var(--color-primary, #012269);
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.25rem + 1vw, 2.25rem);
  margin: 0 0 .75rem;
}


.biz-downloads__lede {
  color: #4b5563;
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 640px;
}

/* Groups */
.biz-downloads__groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* A group can carry its own anchor id, so clear the fixed header the same way
   common.css does for whole sections. */
.biz-downloads__group { scroll-margin-top: 80px; }

.biz-downloads__group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 1rem;
  row-gap: .25rem;
  margin-bottom: 1.25rem;
  padding-bottom: .85rem;
  border-bottom: 2px solid var(--color-primary, #012269);
}
.biz-downloads__group-title {
  color: #1f2937;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
}
.biz-downloads__group-sub {
  color: #6b7280;
  font-size: .95rem;
  margin: 0;
}

/* File list */
.biz-downloads__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}
@media (min-width: 768px) {
  .biz-downloads__list { grid-template-columns: repeat(2, 1fr); }
}

.biz-downloads__item { display: flex; }

.biz-downloads__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.1rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.biz-downloads__link:hover,
.biz-downloads__link:focus-visible {
  border-color: var(--color-primary, #012269);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
  transform: translateY(-2px);
}

/* File-type badge */
.biz-downloads__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .02em;
  background-color: #e0e7ff;
  color: var(--color-primary, #012269);
}
.biz-downloads__icon--pdf     { background-color: #fee2e2; color: #b91c1c; }
.biz-downloads__icon--doc     { background-color: #dbeafe; color: #1d4ed8; }
.biz-downloads__icon--sheet   { background-color: #dcfce7; color: #15803d; }
.biz-downloads__icon--slide   { background-color: #ffedd5; color: #c2410c; }
.biz-downloads__icon--archive { background-color: #ede9fe; color: #6d28d9; }
.biz-downloads__icon--image   { background-color: #cffafe; color: #0e7490; }
.biz-downloads__icon--media   { background-color: #fce7f3; color: #be185d; }
.biz-downloads__icon--text    { background-color: #f3f4f6; color: #374151; }

/* Text body */
.biz-downloads__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.biz-downloads__file-title {
  color: #1f2937;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.biz-downloads__desc {
  color: #6b7280;
  font-size: .85rem;
  line-height: 1.4;
}
.biz-downloads__meta {
  color: #9ca3af;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin-top: .1rem;
}

/* Download action icon */
.biz-downloads__action {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: var(--color-primary, #012269);
  transition: background-color .2s ease, color .2s ease;
}
.biz-downloads__action svg { width: 24px; height: 24px; }
.biz-downloads__link:hover .biz-downloads__action {
  background-color: var(--color-primary, #012269);
  color: #fff;
}
