/* hwpapi docs — minor tweaks on top of Cosmo */

/* Feature card grid on the home page */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem 0;
}

.feature-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  padding: 1.25rem;
  background: var(--bs-body-bg);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.feature-card .card-link {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Hero block */
.hwpapi-hero {
  padding: 2rem 0 1rem 0;
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 1.5rem;
}

.hwpapi-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.35rem;
}

.hwpapi-hero .tagline {
  font-size: 1.15rem;
  color: var(--bs-secondary-color);
  margin-bottom: 1rem;
}

.hwpapi-hero code {
  font-size: 0.95rem;
}

/* Code-block polish */
pre code {
  font-size: 0.9rem;
}

/* Migration table — give some breathing room */
table.migration-table th,
table.migration-table td {
  padding: 0.5rem 0.75rem;
}
