.tools-page {
  max-width: 100%;
}

.tools-page .research-intro {
  max-width: 820px;
  margin-bottom: 28px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.tool-card-image {
  display: block;
  background: #f6f7f9;
  border-bottom: 1px solid var(--muted-border);
}

.tool-card-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.tool-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.page-content-card .tool-card h2 {
  margin: 0 0 12px;
  padding: 0;
  border-bottom: none;
  font-size: 1.35rem;
  line-height: 1.3;
}

.tool-card h2 a {
  color: #1f4e79;
  text-decoration: none;
}

.tool-card h2 a:hover,
.tool-card h2 a:focus {
  text-decoration: underline;
}

.tool-card-body > p {
  margin-top: 0;
}

.tool-contributors {
  margin-top: auto !important;
  padding-top: 16px;
  border-top: 1px solid var(--muted-border);
  color: var(--text-muted);
  font-size: 0.94rem;
}

.tool-status {
  align-self: flex-start;
  margin: 2px 0 16px !important;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #526172;
  font-size: 0.88rem;
  font-weight: 600 !important;
}

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

  .tool-card-image img {
    height: auto;
    max-height: 300px;
    object-fit: contain;
  }
}
