.downloads-body { min-height: 100vh; }
.downloads-body .nav nav a[aria-current="page"] { color: var(--blue-deep); font-weight: 680; }

.downloads-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
  width: min(1180px, calc(100% - 44px));
  min-height: min(700px, calc(100vh - 62px));
  margin: 0 auto;
  padding: 60px 0 70px;
}

.downloads-hero-copy h1 { font-size: clamp(42px, 5.5vw, 68px); letter-spacing: 0; }
.downloads-hero-copy > p:not(.kicker) { max-width: 46ch; margin: 20px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions .button { border-radius: 8px; }

.downloads-product-shot { margin: 0; }
.downloads-product-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 854; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-lg); }
.downloads-product-shot figcaption { margin-top: 9px; color: var(--ink-faint); font: 10px/1.4 var(--font-mono); text-align: right; }

.download-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 74px 0;
  border-top: 1px solid var(--line-strong);
}

.download-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr); gap: 40px; align-items: end; margin-bottom: 32px; }
.download-section-head h2 { max-width: 720px; font-size: clamp(30px, 4vw, 48px); letter-spacing: 0; }
.download-section-head > p { margin: 0 0 5px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.65; }

.platform-grid { display: grid; border-block: 1px solid var(--line); }
.platform-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 20px; align-items: center; min-width: 0; padding: 22px 4px; }
.platform-item + .platform-item { border-top: 1px solid var(--line); }
.platform-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 8px; background: #202329; color: #fff; font: 600 10px/1 var(--font-mono); }
.windows-mark { background: var(--blue); }
.platform-item h3 { font-family: var(--font-ui); font-size: 16px; font-weight: 650; letter-spacing: 0; }
.platform-item p { margin: 4px 0 2px; color: var(--ink-soft); font-size: 12.5px; }
.platform-item small { color: var(--ink-faint); font-size: 10.5px; }
.availability-tag { padding: 4px 8px; border: 1px solid rgba(160, 106, 18, 0.3); border-radius: 5px; background: rgba(160, 106, 18, 0.07); color: var(--amber); font: 600 9px/1 var(--font-mono); text-transform: uppercase; white-space: nowrap; }
.availability-tag.available { border-color: rgba(47, 125, 79, 0.3); background: rgba(47, 125, 79, 0.07); color: var(--green); }
.platform-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 190px; text-align: right; }
.platform-actions .button { justify-content: center; min-width: 165px; padding: 10px 13px; border-radius: 7px; font-size: 12px; }
.release-note { margin: 14px 0 0; color: var(--ink-faint); font-size: 11px; }

.install-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding-block: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.install-methods > article { min-width: 0; padding: clamp(24px, 4vw, 42px); background: var(--paper-2); }
.method-heading { display: flex; align-items: center; gap: 15px; }
.method-heading .kicker { margin: 0 0 4px; }
.method-heading h2 { font-family: var(--font-ui); font-size: 22px; font-weight: 650; letter-spacing: 0; }
.method-mark { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 8px; background: #b63a31; color: #fff; font: 700 11px/1 var(--font-mono); }
.source-mark { background: #202329; }
.install-methods article > p { min-height: 66px; margin: 20px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.command-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid #343840; border-radius: 7px; background: #202329; }
.command-line code { min-width: 0; padding: 13px 14px; overflow-x: auto; color: #f5f3ec; font: 11px/1.5 var(--font-mono); white-space: nowrap; }
.command-line button { padding: 0 13px; border-left: 1px solid #3e434c; color: #c9cad0; font-size: 10.5px; }
.command-line button:hover { background: #30343b; color: #fff; }
.method-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.method-actions .button { border-radius: 7px; padding: 10px 14px; font-size: 12px; }
.method-actions .text-action { color: var(--blue-deep); font-size: 11.5px; font-weight: 620; }

.after-install {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  width: min(1180px, calc(100% - 44px));
  margin: 74px auto;
  padding: 38px 0;
  border-block: 1px solid var(--line-strong);
}

.after-install h2 { font-size: 30px; letter-spacing: 0; }
.after-install ol { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.after-install li { display: grid; line-height: 1.4; }
.after-install li b { font-size: 13px; }
.after-install li span { color: var(--ink-soft); font-size: 11.5px; }
.after-install .button { border-radius: 8px; }

.download-usage-guide { margin-top: 74px; }
.download-usage-guide .ways-head { margin-bottom: clamp(30px, 5vw, 52px); }
.download-usage-guide .download-relay { margin-top: clamp(30px, 5vw, 52px); }
.download-usage-guide .access-node:not(:has(svg)) { grid-template-columns: minmax(0, 1fr); }
.download-usage-guide .access-node:not(:has(svg)) strong,
.download-usage-guide .access-node:not(:has(svg)) small { grid-column: 1; }

.download-footer { display: flex; align-items: center; gap: 18px; padding: 25px max(22px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.download-footer .brand img { height: 21px; }
.download-footer nav { display: flex; gap: 15px; margin-left: auto; }
.download-footer a:hover { color: var(--ink); }

.downloads-body .toast-zone { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 8px; }
.downloads-body .toast { display: flex; align-items: center; gap: 9px; max-width: 330px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2); box-shadow: var(--shadow-md); font-size: 11.5px; }
.downloads-body .toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

@media (max-width: 900px) {
  .downloads-hero { grid-template-columns: 1fr; padding-top: 46px; }
  .downloads-hero-copy { max-width: 650px; }
  .downloads-product-shot { max-width: 720px; }
  .download-section-head { grid-template-columns: 1fr; }
  .install-methods { grid-template-columns: 1fr; }
  .install-methods article > p { min-height: 0; }
  .after-install { grid-template-columns: 1fr; }
  .after-install .button { justify-self: start; }
  .download-usage-guide { margin-top: 50px; }
}

@media (max-width: 680px) {
  .nav .nav-auth { gap: 4px; }
  .nav .nav-signin { padding-inline: 8px; white-space: nowrap; }
  .nav .nav-cta { display: none; }
  .downloads-hero,
  .download-section,
  .after-install { width: calc(100% - 32px); }
  .downloads-hero { min-height: auto; gap: 34px; padding: 42px 0 50px; }
  .downloads-hero-copy h1 { font-size: 42px; }
  .hero-actions { display: grid; }
  .hero-actions .button { justify-content: center; }
  .platform-item { grid-template-columns: 50px minmax(0, 1fr); gap: 13px; }
  .platform-mark { width: 48px; height: 48px; }
  .availability-tag { grid-column: 2; justify-self: start; }
  .platform-actions { display: grid; grid-column: 2; justify-content: stretch; min-width: 0; text-align: left; }
  .platform-actions .button { min-width: 0; width: 100%; }
  .download-footer { flex-wrap: wrap; }
  .download-footer nav { width: 100%; margin-left: 0; }
}
