/* Public Downloads Library */

.downloads-page {
  --downloads-blue: #4aa3ff;
  --downloads-blue-soft: #89bdff;
  --downloads-green: #35d49a;
  --downloads-text: #f3f7ff;
  --downloads-muted: #9eb1cd;
  --downloads-dim: #7f95b4;
  --downloads-line: rgba(125, 175, 255, 0.15);
  min-height: calc(100vh - 200px);
  padding: 42px 14px 72px;
}

.downloads-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.downloads-hero,
.install-order-panel,
.download-library,
.downloads-support {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--downloads-line);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse at 12% 0%,
      rgba(74, 163, 255, 0.105),
      transparent 44%
    ),
    linear-gradient(180deg, rgba(8, 17, 30, 0.9), rgba(5, 13, 25, 0.88));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(125%);
}

.downloads-hero::before,
.install-order-panel::before,
.download-library::before,
.downloads-support::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(132, 196, 255, 0.48),
    transparent
  );
}

.downloads-hero {
  min-height: 360px;
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 46px;
}

.downloads-hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(53, 212, 154, 0.09),
    transparent 66%
  );
  pointer-events: none;
}

.downloads-hero-copy,
.downloads-hero-summary {
  position: relative;
  z-index: 1;
}

.downloads-eyebrow,
.section-kicker {
  color: #78b7ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.downloads-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(74, 163, 255, 0.18);
  border-radius: 999px;
  background: rgba(74, 163, 255, 0.07);
}

.downloads-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--downloads-text);
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.downloads-hero h1 span {
  color: #78b7ff;
}

.downloads-hero-copy > p {
  max-width: 670px;
  margin: 19px 0 0;
  color: #b7c8df;
  font-size: 1.05rem;
  line-height: 1.7;
}

.downloads-hero-actions,
.downloads-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.downloads-button {
  min-height: 46px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.downloads-button:hover {
  color: #fff;
  transform: translateY(-1px);
}

.downloads-button.primary {
  border-color: rgba(119, 190, 255, 0.38);
  background: linear-gradient(135deg, #2995ff, #2563eb);
  box-shadow:
    0 8px 24px rgba(37, 99, 235, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

.downloads-button.primary:hover {
  background: linear-gradient(135deg, #48a5ff, #2f6df0);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.34);
}

.downloads-button.secondary {
  border-color: rgba(125, 175, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #dceaff;
}

.downloads-button.secondary:hover {
  border-color: rgba(125, 175, 255, 0.35);
  background: rgba(74, 163, 255, 0.1);
}

.downloads-button.discord {
  border-color: rgba(132, 145, 255, 0.3);
  background: rgba(88, 101, 242, 0.15);
  color: #cbd0ff;
}

.downloads-hero-summary {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.042);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.hero-summary-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.hero-summary-icon,
.downloads-support-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(53, 212, 154, 0.22);
  border-radius: 13px;
  color: #5be0ae;
  background: rgba(53, 212, 154, 0.09);
  font-size: 1.2rem;
  line-height: 1;
}

.hero-summary-icon > i {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-summary-icon > i::before {
  display: block;
  line-height: 1;
  vertical-align: 0;
}

.hero-summary-lead strong,
.hero-summary-lead span {
  display: block;
}

.hero-summary-lead strong {
  color: var(--downloads-text);
  font-size: 0.98rem;
}

.hero-summary-lead div span {
  margin-top: 3px;
  color: var(--downloads-muted);
  font-size: 0.76rem;
}

.downloads-hero-summary dl {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.downloads-hero-summary dl div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.downloads-hero-summary dt {
  color: var(--downloads-dim);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.downloads-hero-summary dd {
  margin: 5px 0 0;
  color: var(--downloads-text);
  font-size: 1.08rem;
  font-weight: 900;
}

.install-order-panel,
.download-library,
.downloads-support {
  padding: 25px;
}

.section-heading,
.library-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.library-heading h2,
.downloads-support h2 {
  margin: 4px 0 0;
  color: var(--downloads-text);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading > a {
  margin-top: 8px;
  color: var(--downloads-blue-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.section-heading > i {
  color: #76b5ff;
  font-size: 1.2rem;
}

.install-order-list {
  margin: 19px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.install-order-list li {
  position: relative;
  min-width: 0;
  padding: 2px 20px 2px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
}

.install-order-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 7px;
  width: 18px;
  height: 1px;
  background: rgba(125, 175, 255, 0.24);
}

.install-order-number {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 175, 255, 0.2);
  border-radius: 11px;
  background: rgba(74, 163, 255, 0.085);
  color: #7bb9ff;
  font-size: 0.77rem;
  font-weight: 900;
}

.install-order-list strong {
  display: block;
  color: #ebf3ff;
  font-size: 0.8rem;
}

.install-order-list p {
  margin: 5px 0 0;
  color: var(--downloads-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.install-order-list button,
.install-order-done {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 175, 255, 0.15);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #78b7ff;
}

.install-order-list button {
  cursor: pointer;
}

.install-order-done {
  color: #52d6a5;
}

.download-library {
  padding: 30px;
  scroll-margin-top: 112px;
}

.library-heading p {
  margin: 7px 0 0;
  color: var(--downloads-muted);
  font-size: 0.82rem;
}

.library-count {
  min-width: 96px;
  padding: 11px 13px;
  border: 1px solid rgba(125, 175, 255, 0.15);
  border-radius: 13px;
  background: rgba(74, 163, 255, 0.055);
  text-align: right;
}

.library-count strong,
.library-count span {
  display: block;
}

.library-count strong {
  color: var(--downloads-text);
  font-size: 1.1rem;
}

.library-count span {
  color: var(--downloads-dim);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-tabs {
  margin: 23px 0 18px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.17);
}

.category-tab {
  min-height: 45px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #91a5c1;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.category-tab:hover {
  color: #d7e8ff;
  background: rgba(255, 255, 255, 0.035);
}

.category-tab.active {
  border-color: rgba(125, 175, 255, 0.2);
  background: rgba(74, 163, 255, 0.11);
  color: #f2f7ff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.category-tab i {
  color: #6eaffb;
}

.tab-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #a9c6eb;
  font-size: 0.64rem;
}

.downloads-category[hidden] {
  display: none;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.downloads-grid.single-download {
  grid-template-columns: minmax(0, 1fr);
}

.downloads-grid.single-download .download-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.downloads-grid.single-download .download-disclosures {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.download-card {
  min-width: 0;
  padding: 21px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 17px;
  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(74, 163, 255, 0.075),
      transparent 40%
    ),
    rgba(255, 255, 255, 0.035);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  scroll-margin-top: 125px;
}

.download-card:hover {
  border-color: rgba(125, 175, 255, 0.22);
  background-color: rgba(74, 163, 255, 0.045);
  transform: translateY(-1px);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.18);
}

.download-card.highlight-pulse {
  border-color: rgba(53, 212, 154, 0.55);
  box-shadow:
    0 0 0 3px rgba(53, 212, 154, 0.11),
    0 16px 38px rgba(0, 0, 0, 0.25);
}

.download-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
}

.download-file-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 175, 255, 0.18);
  border-radius: 14px;
  background: rgba(74, 163, 255, 0.09);
  color: #7cbaff;
  font-size: 1.25rem;
}

.download-card-title {
  min-width: 0;
}

.download-badges {
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.file-type-badge,
.required-badge,
.optional-badge,
.integrity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.file-type-badge,
.optional-badge {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #91a6c3;
}

.required-badge {
  padding: 3px 7px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.07);
  color: #f3c967;
}

.download-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--downloads-text);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.download-filename {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #7f96b6;
  background: transparent;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrity-badge {
  max-width: 118px;
  padding: 6px 8px;
  border: 1px solid rgba(53, 212, 154, 0.2);
  background: rgba(53, 212, 154, 0.07);
  color: #5cddad;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.integrity-badge.partial {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.07);
  color: #edc767;
}

.integrity-badge.unavailable {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #8698b2;
}

.download-description {
  margin: 17px 0;
  color: #aebfd6;
  font-size: 0.82rem;
  line-height: 1.6;
}

.download-meta {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.download-meta > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.download-meta dt {
  color: #7187a6;
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}

.download-meta dt i {
  margin-right: 4px;
  color: #609bdc;
}

.download-meta dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: #dae7f9;
  font-size: 0.74rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compatibility-row {
  margin-top: 9px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(53, 212, 154, 0.12);
  border-radius: 10px;
  background: rgba(53, 212, 154, 0.045);
  color: #9eb8b0;
  font-size: 0.7rem;
}

.compatibility-row i {
  color: #4bd6a3;
}

.compatibility-row strong {
  color: #ccece1;
}

.download-disclosures {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.download-disclosure {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

.download-disclosure[open] {
  border-color: rgba(125, 175, 255, 0.17);
  background: rgba(74, 163, 255, 0.035);
}

.download-disclosure summary {
  min-height: 43px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #aebfda;
  cursor: pointer;
  list-style: none;
}

.download-disclosure summary::-webkit-details-marker {
  display: none;
}

.download-disclosure summary > span {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 7px;
}

.download-disclosure summary > span > i {
  color: #6dafff;
}

.download-disclosure summary strong {
  color: #d9e7fa;
  font-size: 0.74rem;
}

.download-disclosure summary em {
  color: #7085a3;
  font-size: 0.65rem;
  font-style: normal;
}

.disclosure-chevron {
  color: #6d83a0;
  font-size: 0.72rem;
  transition: transform 0.18s ease;
}

.download-disclosure[open] .disclosure-chevron {
  transform: rotate(180deg);
}

.release-notes-content,
.checksum-content {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.release-notes-version {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7188a8;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-notes-version span {
  color: #6faff7;
}

.release-notes-copy {
  max-height: 210px;
  overflow: auto;
  color: #c1cee0;
  font-size: 0.73rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.release-notes-content > p {
  margin: 0;
  color: #8397b3;
  font-size: 0.72rem;
}

.checksum-content {
  display: grid;
  gap: 7px;
}

.checksum-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.checksum-label {
  color: #7e94b2;
  font-size: 0.59rem;
  font-weight: 900;
}

.checksum-value {
  min-width: 0;
  padding: 7px 8px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: #9fb4d0;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checksum-copy {
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(125, 175, 255, 0.14);
  border-radius: 7px;
  background: rgba(74, 163, 255, 0.07);
  color: #79b6fb;
  font-size: 0.61rem;
  font-weight: 800;
  cursor: pointer;
}

.checksum-copy.copied {
  border-color: rgba(53, 212, 154, 0.24);
  background: rgba(53, 212, 154, 0.08);
  color: #55dba9;
}

.checksum-empty {
  margin: 0;
  color: #8397b3;
  font-size: 0.7rem;
}

.download-card-footer {
  margin-top: auto;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.download-popularity {
  color: #778daa;
  font-size: 0.67rem;
  white-space: nowrap;
}

.download-popularity i {
  margin-right: 4px;
  color: #679edc;
}

.download-popularity strong {
  color: #b7c9df;
}

.download-action {
  min-width: 148px;
  padding: 9px 13px;
  justify-content: space-between;
}

.download-action > span span,
.download-action > span small {
  display: block;
}

.download-action small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.58rem;
  font-weight: 700;
}

.download-action.unavailable {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #8899b0;
}

.category-guide {
  margin-top: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.028);
}

.category-guide-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}

.category-guide-heading > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 175, 255, 0.17);
  border-radius: 11px;
  background: rgba(74, 163, 255, 0.07);
  color: #75b5fb;
}

.category-guide h3 {
  margin: 3px 0 0;
  color: #ecf4ff;
  font-size: 1rem;
  font-weight: 900;
}

.category-guide-heading p {
  margin: 6px 0 0;
  color: var(--downloads-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.category-guide ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
  counter-reset: guide-step;
}

.category-guide li {
  padding: 9px 11px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  color: #afc0d7;
  font-size: 0.7rem;
  line-height: 1.5;
  counter-increment: guide-step;
}

.category-guide li::before {
  content: counter(guide-step);
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(74, 163, 255, 0.09);
  color: #75b4fa;
  font-size: 0.62rem;
  font-weight: 900;
}

.category-guide code {
  padding: 2px 5px;
  border: 1px solid rgba(125, 175, 255, 0.12);
  border-radius: 5px;
  background: rgba(74, 163, 255, 0.06);
  color: #9fcaff;
  overflow-wrap: anywhere;
}

.downloads-empty {
  min-height: 270px;
  padding: 45px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(125, 175, 255, 0.15);
  border-radius: 15px;
  text-align: center;
}

.downloads-empty > span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(74, 163, 255, 0.07);
  color: #6ca6e9;
  font-size: 1.3rem;
}

.downloads-empty h3 {
  margin: 14px 0 0;
  color: #e6f0fd;
  font-size: 1rem;
}

.downloads-empty p {
  margin: 6px 0 0;
  color: var(--downloads-muted);
  font-size: 0.77rem;
}

.downloads-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.downloads-support > div:first-child {
  display: flex;
  align-items: center;
  gap: 15px;
}

.downloads-support h2 {
  font-size: 1.1rem;
}

.downloads-support p {
  margin: 5px 0 0;
  color: var(--downloads-muted);
  font-size: 0.76rem;
}

.downloads-support-actions {
  flex: 0 0 auto;
  margin: 0;
}

.downloads-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(53, 212, 154, 0.28);
  border-radius: 12px;
  background: rgba(5, 20, 28, 0.96);
  color: #dffaf0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.downloads-toast i {
  color: #4fd7a5;
}

.downloads-toast[data-type="error"] {
  border-color: rgba(248, 113, 113, 0.3);
  color: #fee2e2;
}

.downloads-toast[data-type="error"] i {
  color: #f87171;
}

.downloads-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.downloads-page :is(a, button, summary):focus-visible {
  outline: 2px solid #78b7ff;
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .downloads-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    padding: 34px;
  }

  .install-order-list {
    grid-template-columns: 1fr 1fr;
    gap: 18px 8px;
  }

  .install-order-list li:nth-child(2)::after {
    display: none;
  }

  .download-card-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .integrity-badge {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 780px) {
  .downloads-page {
    padding: 24px 14px 52px;
  }

  .downloads-hero {
    min-height: 0;
    padding: 27px;
    grid-template-columns: 1fr;
  }

  .downloads-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.3rem);
  }

  .downloads-hero-summary {
    width: 100%;
  }

  .install-order-panel,
  .download-library,
  .downloads-support {
    padding: 20px;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .downloads-grid.single-download .download-meta {
    grid-template-columns: 1fr 1fr;
  }

  .downloads-grid.single-download .download-disclosures {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .category-guide {
    grid-template-columns: 1fr;
  }

  .downloads-support {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .downloads-hero {
    padding: 23px 20px;
  }

  .downloads-hero-actions,
  .downloads-support-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .downloads-hero-summary dl {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading,
  .library-heading {
    align-items: flex-start;
  }

  .section-heading > a,
  .library-count {
    display: none;
  }

  .install-order-list {
    grid-template-columns: 1fr;
  }

  .install-order-list li::after {
    display: none;
  }

  .category-tabs {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: 17px;
  }

  .download-card-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .download-meta {
    grid-template-columns: 1fr;
  }

  .downloads-grid.single-download .download-meta {
    grid-template-columns: 1fr;
  }

  .checksum-row {
    grid-template-columns: 1fr auto;
  }

  .checksum-label {
    grid-column: 1 / -1;
  }

  .checksum-copy span {
    display: none;
  }

  .download-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .download-action {
    width: 100%;
  }

  .downloads-support > div:first-child {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .downloads-page *,
  .downloads-page *::before,
  .downloads-page *::after,
  .downloads-toast {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
