.tools-page .page-main {
  padding-top: 0;
}

.tools-page .main-content {
  max-width: 1040px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.tools-intro {
  margin-bottom: var(--space-2xl);
}

.tools-intro h2 {
  color: #2d4f7a;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.tools-intro p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

.tools-section + .tools-section {
  margin-top: var(--space-2xl);
}

.tools-section-heading {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
}

.tools-section-heading h3 {
  color: #2d4f7a;
  font-size: var(--font-size-2xl);
  margin-bottom: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

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

.tool-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: inherit;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card a:hover,
.tool-card a:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tool-card a:focus-visible {
  outline: 3px solid #2d4f7a;
  outline-offset: 3px;
}

.tool-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.tool-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-md);
}

.tool-card h4 {
  color: #2d4f7a;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.tool-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.tool-card-visit {
  color: var(--color-link);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-top: auto;
}

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