/* ============================================================================
   WELL RUN · SIGNAL SYSTEM — WR SCORE · DOWNLOAD
   /download/: the newest release from the update feed beside the title, the
   install steps, every stable version, help, and the closing card.
   ============================================================================ */

/* ── The newest release ── */
.sch-dl-rel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(28px, 3vw, 44px);
  box-shadow: var(--wr-shadow-md);
  min-height: 280px;
}
.sch-dl-rel__version {
  font-size: var(--sch-t-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.sch-dl-rel__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sch-dl-rel__notes { gap: 8px; }
.sch-dl-rel__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.sch-dl-rel__file { font-family: var(--sch-mono); font-size: var(--sch-t-label); color: var(--wr-black-72); overflow-wrap: anywhere; }
.sch-dl-rel__sha {
  max-width: 100%;
  font-family: var(--sch-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--wr-black-72);
  overflow-wrap: anywhere;
}
.sch-dl-rel__link,
.sch-dl-link { color: var(--wr-black); font-weight: 700; text-decoration: underline; text-decoration-color: var(--wr-orange); text-underline-offset: 3px; }

/* ── Install steps ── */
.sch-dl-steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sch-dl-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: clamp(24px, 2.4vw, 32px);
}
.sch-dl-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sch-dl-step__n { font-size: var(--sch-t-h2); min-width: 1.2ch; }
.sch-dl-step__text { display: flex; flex-direction: column; gap: 8px; }
.sch-dl-step b { color: var(--wr-black); font-weight: 700; }

/* ── Every version ── */
.sch-dl-versions { padding: clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 40px); background: transparent; }
.sch-dl-table { width: 100%; border-collapse: collapse; }
.sch-dl-table th,
.sch-dl-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--wr-black-10); text-align: left; font-weight: inherit; vertical-align: middle; }
.sch-dl-table td:last-child,
.sch-dl-table th:last-child { padding-right: 0; text-align: right; }
.sch-dl-table tbody tr:last-child td { border-bottom: 0; }
.sch-dl-table__new { margin-left: 12px; vertical-align: middle; }

/* ── Help ── */
.sch-dl-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: clamp(32px, 4vw, 56px);
}
.sch-dl-help .sch-body { max-width: 620px; }
.sch-dl-help .sch-actions { flex-shrink: 0; }

@media (max-width: 1024px) {
  .sch-dl-help { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .sch-dl-steps { grid-template-columns: minmax(0, 1fr); }
  .sch-dl-step { gap: 16px; }
  .sch-dl-table th:nth-child(3),
  .sch-dl-table td:nth-child(3) { display: none; }
  .sch-dl-table__new { display: none; }
}
@media (max-width: 480px) {
  .sch-dl-rel .wr-btn--lg { width: 100%; justify-content: center; white-space: normal; padding-left: 20px; padding-right: 20px; font-size: 14px; }
}
.sch-dl-top { align-items: center; }
