/*
 * Downloads page. Rides on docs.css for typography and pricing.css for the
 * shell; only the build cards are new.
 */

main.dl { max-width: 900px; display: block; }
main.dl > section, main.dl > .dl-grid { max-width: none; }

/* The "you may not need this" card leads, so it is quiet rather than loud —
   an alarm-coloured box would read as a warning about the downloads. */
.first-thing { border-left: 3px solid var(--vm-accent); }

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

.dl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.dl-head h2 { margin: 0; }

.dl-meta {
  font-size: 0.8462rem;
  color: var(--vm-text-muted);
  text-align: right;
  white-space: nowrap;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
}

.btn-dl {
  display: inline-block;
  background: var(--vm-accent-strong);
  color: #fff;
  text-decoration: none;
  font-size: 0.9231rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--vm-accent-strong);
}
.btn-dl:hover { filter: brightness(1.1); }

/* Full width, monospace, selectable: a digest is for comparing character by
   character, so it must never be truncated with an ellipsis. */
.dl-sum {
  width: 100%;
  font-family: var(--ca-mono);
  font-size: 0.7692rem;
  color: var(--vm-text-muted);
  background: var(--vm-inset);
  border: 1px solid var(--vm-border-soft);
  border-radius: 6px;
  padding: 7px 9px;
  word-break: break-all;
  user-select: all;
}
.dl-sum b { color: var(--vm-text); font-weight: 600; }

.dl-missing { color: var(--vm-warning); font-size: 0.9231rem; }

/* Collapsed by default: the warning matters only once, and open-by-default
   would make the page read as mostly troubleshooting. */
.dl-help {
  border-top: 1px solid var(--vm-border-soft);
  margin-top: 16px;
  padding-top: 12px;
}
.dl-help summary {
  cursor: pointer;
  color: var(--vm-accent);
  font-size: 0.9231rem;
  list-style: none;
}
.dl-help summary::-webkit-details-marker { display: none; }
.dl-help summary::before { content: "▸ "; }
.dl-help[open] summary::before { content: "▾ "; }
.dl-help p, .dl-help li { font-size: 0.9231rem; }
.dl-help > p:first-of-type { margin-top: 12px; }

.dl-cmd {
  font-family: var(--ca-mono);
  font-size: 0.8462rem;
  background: var(--vm-inset);
  border: 1px solid var(--vm-border);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  color: var(--vm-text);
  margin: 0 0 12px;
}

@media (max-width: 760px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-head { flex-direction: column; gap: 2px; }
  .dl-meta { text-align: left; }
}
