/* ── Install ─────────────────────────────────────────── */

.install-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Grid items default to min-width:auto, so the unwrappable curl line would
   widen the whole column past the viewport. */
.install-main,
.install-side {
  min-width: 0;
}

.install-step-lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

.install-rec {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #6ee7a0;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.install-code pre {
  font-size: 12.5px;
}

.install-copy {
  margin-top: 14px;
}

.install-copy.is-copied {
  border-color: rgba(34, 197, 94, 0.45);
  color: #6ee7a0;
}

.install-note {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text2);
}

.install-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.install-alt {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 22px;
}

.install-alt h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.install-alt p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text2);
}

.install-alt-soon {
  opacity: 0.72;
}

.install-soon {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.install-dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.install-dl-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--r);
  background: var(--bg1);
  border: 1px solid var(--border2);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.install-dl-btn:hover,
.install-dl-btn:focus-visible {
  background: var(--bg3);
  border-color: var(--border3);
}

.install-dl-btn img {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.install-dl-btn em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11.5px;
  color: var(--text3);
  margin-left: 4px;
}

.install-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
}

.install-footer p {
  flex: 1 1 380px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text2);
}

.install-footer strong {
  color: var(--text);
  font-weight: 600;
}

.install-footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .install-footer {
    padding: 18px;
  }

  /* The copy button carries the command on small screens, so wrap it for
     reading rather than making a one-line command scroll sideways. */
  .install-code pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px;
    padding: 16px;
  }

  .install-copy,
  .install-footer-links .btn {
    width: 100%;
    justify-content: center;
  }
}
