/* Download page. Tokens come from base.css; no raw colors here. */

/* ---------- hero ---------- */
.dl-hero { padding-top: var(--s-8); }
@media (min-width: 820px) { .dl-hero { padding-top: var(--s-9); } }
.dl-hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1000px) { .dl-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }
.dl-hero__copy .lead { margin-top: var(--s-5); }

.dl-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
.dl-btn { --h: 56px; --px: 28px; gap: 12px; font-size: 15px; }
.dl-btn__icon { display: inline-block; font-weight: 600; transition: transform 220ms var(--spring); }
.dl-btn:hover .dl-btn__icon { transform: translateY(3px); }
.dl-btn:active .dl-btn__icon { transform: translateY(5px); transition-duration: 70ms; }
.dl-hero__file { font-size: 13px; color: var(--text-2); }
.dl-hero__ver { color: var(--text); }
.dl-hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: var(--s-5); color: var(--text-2); }
.dl-hero__links .link { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 639px) {
  .dl-btn { width: 100%; }
  .dl-hero__links .link { min-height: 44px; }
}

/* requirements window */
.dl-req .window__body { padding: var(--s-5) var(--s-5) var(--s-6); }
.dl-req__cmd { margin-bottom: var(--s-3); }
.dl-req__list { list-style: none; margin: 0; padding: 0; }
.dl-req__list li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  transition: background-color var(--t-fast) ease-out;
}
.dl-req__list li:hover { background: var(--selection); }
.dl-req__list .status { font-size: 13px; color: var(--text-2); }
.dl-req__val { color: var(--text); }
.dl-req__foot { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media (max-width: 400px) { .dl-req__list li { grid-template-columns: 112px minmax(0, 1fr); } }

/* ---------- install steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: none; }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.step { display: flex; flex-direction: column; }
.step__body { flex: 1; display: flex; flex-direction: column; }
.step__cmd { font-size: 13px; color: var(--text-2); }
.step__title { margin-top: var(--s-4); font-size: var(--fs-h3); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.step__title .kbd { font-size: 13px; vertical-align: 2px; }
.step__text { margin-top: var(--s-2); font-size: 14px; line-height: 1.6; color: var(--text-2); }

.step__art { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: var(--s-5); }
.step__chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--bg-2);
  font-size: 12px;
  color: var(--text);
  transition: border-color var(--t) ease-out, color var(--t) ease-out, background-color var(--t) ease-out;
}
.step__chip--dim { color: var(--text-2); border-style: dashed; }
.step__chip--on, .step:hover .step__chip--dim { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.step__arrow { color: var(--text-2); transition: transform 220ms var(--spring); }
.step:hover .step__arrow { transform: translateX(4px); }

ul.step__perms { list-style: none; margin: auto 0 0; padding: var(--s-5) 0 0; font-size: 13px; }
.step__perms li { display: flex; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); }
.step__for { color: var(--text-2); }
.step__for::before { content: "for "; content: "for " / ""; color: var(--text-3); }

/* ---------- CLI grid ---------- */
.cli-grid { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .cli-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cli-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.cli { display: flex; flex-direction: column; }
.cli__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.cli__name { font-size: 17px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.cli__maker { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.cli__line { margin-bottom: var(--s-4); font-size: 14px; line-height: 1.6; color: var(--text-2); }
.card > .cli__cmd, .card > .cli__site { margin-top: auto; }
.cli__cmd { padding-left: 12px; font-size: 12.5px; }
.cli__cmd code { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; padding-block: 4px; }
.cli__site { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px dashed var(--border); border-radius: 8px; font-size: 12.5px; color: var(--text-2); }
.cli__site::before { content: "# "; content: "# " / ""; color: var(--ok); white-space: pre; }
.cli--any { background: var(--bg-2); }

/* ---------- next links ---------- */
.dl-next__card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.dl-next__card .eyebrow { margin-bottom: 0; }
.dl-next__title { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.dl-next__go { margin-top: auto; padding-top: var(--s-4); font-size: 13px; color: var(--accent); transition: transform 220ms var(--spring); }
.dl-next__card:hover .dl-next__go { transform: translateX(4px); }
.dl-next__card:active { transform: scale(.995); }
