/* Shared npm installation card for the homepage and Skills directory. */
.install-console {
  position: relative;
  z-index: 1;
  align-self: center;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line));
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--card) 96%, transparent);
  background-size: 28px 28px;
  box-shadow: 18px 18px 0 color-mix(in srgb, var(--accent) 14%, transparent);
}

.install-console::before {
  position: absolute;
  width: 72px;
  height: 1px;
  top: -1px;
  left: 24px;
  background: var(--hero-accent);
  content: "";
}

.install-console-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--hero-muted);
  font: 600 13px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.install-console-head p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #72d6a5;
  box-shadow: 0 0 0 4px rgba(114, 214, 165, 0.12);
}

.release-badge {
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line));
  color: var(--accent);
}

.release-grid {
  display: grid;
  margin: 26px 0 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-grid div {
  min-width: 0;
  padding: 17px 12px 16px;
  border-right: 1px solid var(--line);
}

.release-grid div:first-child {
  padding-left: 0;
}

.release-grid div:last-child {
  padding-right: 0;
  border-right: 0;
}

.release-grid dt {
  color: var(--hero-muted);
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.release-grid dd {
  margin: 7px 0 0;
  color: var(--hero-ink);
  font: 600 15px/1.4 var(--sans);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.hero-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--code-surface);
}

.hero-command-row code {
  min-width: 0;
  padding: 13px 14px;
  color: var(--code-ink);
  font: 400 12px/1.65 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hero-command-row button {
  min-width: 64px;
  border: 0;
  border-left: 1px solid var(--accent);
  color: var(--accent-contrast);
  background: var(--accent);
  cursor: pointer;
  font: 600 14px/1.4 var(--sans);
}

.hero-command-row button:hover,
.hero-command-row button:focus-visible {
  color: var(--accent);
  background: var(--card);
}

.install-console-note {
  margin: 13px 0 0;
  color: var(--hero-muted);
  font-size: 12px;
  line-height: 1.55;
}


@media (max-width: 980px) {
  .install-console { width: 100%; max-width: 700px; justify-self: start; }
}

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

        .release-grid div,
        .release-grid div:first-child,
        .release-grid div:last-child {
          padding: 12px 0;
          border-right: 0;
          border-bottom: 1px solid var(--line);
        }

        .release-grid div:last-child {
          border-bottom: 0;
        }

        .hero-command-row {
          grid-template-columns: 1fr;
        }

        .hero-command-row button {
          min-height: 44px;
          border-top: 1px solid var(--line);
          border-left: 0;
        }

}
