/* Buyer page (/buy/) — search tool cards.
   Section rhythm, hero, link lists and steps live in page.css.
*/

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .tool-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1000px) {
  .tool-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Map search is the one we push — it gets the navy panel and the orange CTA. */
.tool-card--lead {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: var(--navy);
  color: var(--on-navy);
}

@media (min-width: 1000px) {
  .tool-card--lead {
    grid-column: span 1;
  }
}

.tool-card--lead h3 {
  color: var(--ivory);
}

.tool-card h3 {
  margin-bottom: 0.5rem;
}

.tool-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

.tool-card--lead p {
  color: var(--on-navy);
}

.tool-card .btn {
  align-self: flex-start;
  margin-top: auto;
}
