.downloads-library {
  padding-top: 120px;
  padding-bottom: 40px;
}
.downloads-library > h1,
.downloads-library > h2 {
  text-align: center;
  margin-bottom: 40px;
}
/* Section titles below the product list (Bundles). */
.downloads-library > h2 {
  margin-top: 96px;
}
.downloads-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 auto 32px;
}
.downloads-notes p {
  padding: 24px;
  background: var(--s);
  border-radius: 24px;
  color: var(--mu);
  font-size: 16px;
}
.downloads-notes strong {
  color: var(--text-ink);
  font-weight: 800;
}
.downloads-notes a {
  color: var(--ac);
}
.downloads-library > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
#download-search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--s);
  color: var(--text-ink);
  font: inherit;
  padding: 16px 20px;
  border-radius: 16px;
}
.download-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.download-filters button {
  padding: 10px 18px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--s);
  cursor: pointer;
}
.download-filters button[aria-pressed="true"] {
  background: #d366ac;
  color: var(--neutral-black);
  border-color: #d366ac;
}
#download-status {
  font-size: 15px;
  color: var(--mu);
  margin: 16px 0;
}
.downloads-grid {
  display: grid;
  gap: 16px;
}
.download-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 26px;
  background: var(--s);
  box-shadow: var(--sh);
  border-left: 5px solid var(--download-accent);
  scroll-margin-top: 88px;
}
.download-entry[hidden] {
  display: none;
}
.download-preview img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}
.download-copy h2 {
  font: 800 28px/1.1 var(--detail-font);
  margin: 0 0 12px;
}
.download-copy p {
  font-size: 16px;
  color: var(--mu);
  line-height: 1.5;
}
.download-secondary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
}
.download-secondary a {
  color: var(--ac);
}
.download-actions {
  display: grid;
  gap: 10px;
}
.download-os {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  padding: 12px 20px;
}
.download-actions small {
  text-align: center;
  font-size: 12px;
  color: var(--mu);
}
@media (max-width: 760px) {
  .downloads-library {
    padding-top: 100px;
  }
  .downloads-notes {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .download-entry {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }
  .download-preview img {
    height: 160px;
  }
  .download-secondary {
    justify-content: center;
  }
  .download-actions {
    grid-template-columns: 1fr 1fr;
  }
  .download-actions small {
    grid-column: 1/-1;
  }
  .download-filters button {
    font-size: 14px;
    padding: 10px 14px;
  }
}

.downloads-grid,
.download-entry,
.download-entry > * {
  min-width: 0;
}
.downloads-library > h1,
.downloads-library > h2 {
  margin-inline: auto;
}
/* Same mobile title size as the other utility pages (--utility-title-mobile). */
@media (max-width: 600px) {
  .downloads-library > h1,
  .downloads-library > h2 {
    font-size: 64px;
  }
}
@media (max-width: 360px) {
  .download-actions {
    grid-template-columns: 1fr;
  }
  .download-os {
    padding: 12px;
  }
}

/* Download surfaces deliberately stay white in both themes. */
.downloads-notes p,
.download-entry {
  background: #fff;
  color: var(--neutral-black);
}
.downloads-notes strong,
.download-copy h2 {
  color: var(--neutral-black);
}
.downloads-notes p,
.download-copy p,
.download-actions small {
  color: #706878;
}
.download-entry {
  border-left-width: 8px;
}
.download-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.download-title h2 {
  margin: 0;
}
.download-buy {
  font-size: 14px;
  padding: 8px 18px;
  background: #d366ac;
  color: #fff;
}
.download-actions .download-os {
  background: #17121c;
  color: #fff;
}
.download-secondary a {
  text-decoration: none;
  color: #d366ac;
  transition: color 250ms ease;
}
.download-secondary a:hover,
.download-secondary a:focus-visible {
  color: var(--neutral-black);
}
/* Product names inside a card's copy (bundle cards). */
.download-copy p a {
  text-decoration: none;
  transition: color 250ms ease;
}
.download-copy p a:hover,
.download-copy p a:focus-visible {
  color: #d366ac;
}
/* Bundle zip progress: room for "100%" with same-width digits, so the label doesn't move. */
.download-progress {
  display: inline-block;
  min-width: 4.5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.download-filters button {
  border: 0;
  color: var(--text-ink);
  transition:
    background 250ms ease,
    color 250ms ease;
}
.download-filters button[aria-pressed="true"] {
  color: #fff;
}
@media (max-width: 760px) {
  .download-title {
    justify-content: center;
  }
}

/* The zoom scales the whole preview, so the image's edges are never cropped. */
.download-preview {display:block;min-width:0;overflow:hidden;border-radius:16px;transition:transform 250ms ease;}
.download-preview img {display:block;}
.download-preview:hover,.download-preview:focus-visible {transform:scale(1.04);}
.download-title h2 a {color:inherit;text-decoration:none;}
.download-actions .download-os {transition:background-color 250ms ease;color:#fff;box-shadow:none;}
.download-actions .download-os:hover,.download-actions .download-os:focus-visible {background:#d366ac;box-shadow:none;transform:none;}
@media(prefers-reduced-motion:reduce){.download-preview{transition:none}.download-preview:hover{transform:none}}

.download-buy:hover,.download-buy:focus-visible {background:#fff;color:#d366ac;box-shadow:none;}
