/* Compact tool directory: three cards per row on wide screens. */
.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-width: 0;
  min-height: 202px;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 15px;
}

.tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.tool-icon svg {
  width: 20px;
  height: 20px;
}

.tool-icon.violet {
  color: #168f82;
  background: #e4f7f3;
}

.tool-icon.green {
  color: #24996f;
  background: #e5f7ee;
}

.nav-dot.green {
  background: #34b47f;
  box-shadow: 0 0 0 4px rgba(52, 180, 127, 0.12);
}

.tool-card h3 {
  margin: 16px 0 6px;
  font-size: 15px;
  line-height: 1.45;
}

.tool-card p {
  font-size: 12px;
  line-height: 1.65;
}

.card-bottom {
  margin-top: auto;
  padding-top: 13px;
}

.version,
.tool-type,
.launch-button {
  font-size: 10px;
}

.external-launch svg {
  transform: none;
}

.external-launch:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 1120px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .tool-card {
    min-height: 0;
  }
}
