/* Nedladdningssidan (rostyfrosty.com/downloads). Bygger på ../style.css (färger, typsnitt, sidfot). */
/* Menyns body är exakt en skärm hög och dess main får krympa (style.css). Den här sidan är längre än skärmen och ska scrolla. */
.downloads-page { justify-content: flex-start; height: auto; min-height: 100vh; min-height: 100dvh; }

.dl {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 24px 16px 8px;
  flex: 1 0 auto;
  display: block;
}

.dl-back a { color: var(--cold-2); text-decoration: none; font-size: 14px; }
.dl-back a:hover, .dl-back a:focus-visible { text-decoration: underline; }

.dl-title {
  margin: 18px 0 6px;
  font: 400 clamp(20px, 5vw, 30px) / 1.3 var(--pixel);
  background: linear-gradient(90deg, var(--hot-1), var(--hot-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dl-lead { color: var(--muted); margin: 0 0 24px; }

.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.dl-card h2 { margin: 0 0 2px; font-size: 18px; }
.dl-variants { list-style: none; margin: 0; padding: 0; }
.dl-variant { padding: 8px 0; border-top: 1px solid var(--line); }
.dl-variant:first-child { border-top: 0; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-row > div { min-width: 0; }
.dl-button { flex: none; }
.dl-row h3 { margin: 0; font-size: 15px; }
.dl-meta { margin: 0; color: var(--muted); font-size: 13px; }
.dl-info { margin: 0; font-size: 12px; color: var(--muted); }
.dl-info:empty { display: none; }

.dl-button {
  min-height: 40px;
  padding: 6px 20px;
  border: 0;
  border-radius: 999px;
  font: 600 14px var(--text);
  color: #1a0f08;
  background: linear-gradient(90deg, var(--hot-1), var(--hot-2));
  cursor: pointer;
}
.dl-button:hover:not(:disabled), .dl-button:focus-visible { filter: brightness(1.1); }
.dl-button:disabled { opacity: .6; cursor: progress; }

.dl-variant progress[hidden] { display: none; }
.dl-variant progress { display: block; width: 100%; height: 6px; margin-top: 8px; accent-color: var(--hot-2); }
.dl-status { margin: 6px 0 0; font-size: 13px; }
.dl-status:empty { display: none; }
.dl-status.bad, .dl-error { color: #ff8a7a; }
.dl-sum { margin-top: 4px; font-size: 11px; color: var(--muted); }
.dl-sum code { display: block; margin-top: 4px; overflow-wrap: anywhere; }

.dl-empty { color: var(--muted); }
.dl-help { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.dl-help h2 { font-size: 17px; margin: 0 0 8px; }
.dl-help ol { padding-left: 20px; margin: 0 0 12px; }
.dl-help li { margin: 6px 0; }
.dl-help code { font-size: 13px; }
