/* Download page — the OS-detected download hub. Loads after guide.css, so it
   reuses the guide tokens (--g-*) and the product page's .cta buttons. All
   styling is class-based; the site CSP forbids inline style attributes. */

/* ── hero: the auto-detected primary download ───────────────────────── */
.dl-hero {
  text-align: center;
  background: #191919;
  border: 1px solid var(--g-line);
  border-radius: 12px;
  padding: 2.4rem 1.5rem 1.9rem;
  margin: 1.6rem 0 1.1rem;
}
.dl-sub {
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--g-t2);
  margin: 0.95rem auto 0;
  max-width: none;
}
.dl-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--g-line);
}
.dl-alt-label {
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--g-t3);
}
.dl-alt a {
  font-family: var(--mono, monospace);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--g-t1);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.dl-alt a:hover { color: var(--g-bone); border-bottom-color: var(--g-hot); }
.dl-alt a.is-current { color: var(--g-hot-br); border-bottom-color: var(--g-hot-br); }

/* ── per-platform download row (macOS / Windows) ────────────────────── */
.dl-get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 1.1rem 0 0.3rem;
}
.dl-req {
  font-family: var(--mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--g-t3);
}

/* ── Linux: three format cards, each with its own download ──────────── */
.dl-formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 1rem;
  margin: 1.3rem 0 0.4rem;
}
.dl-format {
  display: flex;
  flex-direction: column;
  background: #191919;
  border: 1px solid var(--g-line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem 1.2rem;
}
.dl-format-name {
  font-family: var(--mono, monospace);
  font-size: 1.05rem;
  color: var(--g-bone);
  letter-spacing: 0.03em;
}
.dl-format-for {
  color: var(--g-t2);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0.35rem 0 0.9rem;
  max-width: none;
}
.dl-cmd {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 0.73rem;
  color: var(--g-hot);
  background: var(--g-deep);
  border: 1px solid var(--g-line);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin: 0 0 1.1rem;
  overflow-x: auto;
  white-space: nowrap;
}
.dl-format .cta { margin-top: auto; text-align: center; }

@media (max-width: 640px) {
  .dl-hero { padding: 1.8rem 1.1rem 1.5rem; }
  .dl-get { gap: 0.6rem; }
}
