.home-api-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.2rem;
  margin-top: 0.15rem;
  margin-bottom: 0.4rem;
}

.home-api-card-grid--support {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 0.15rem;
  justify-content: start;
}

.home-api-card {
  display: block;
  min-height: 100%;
  padding: 1.2rem;
  border: 1px solid #e3e5e8;
  border-radius: 16px;
  background: #f8f9fb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: inherit;
  text-decoration: none !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  text-align: left;
}

.home-api-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: #f1f3f6;
}

.home-api-card-header {
  margin-bottom: 0.15rem;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
}

.home-api-card-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

.home-api-card-title {
  margin: 0;
  color: #3152c5;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}

.md-typeset .home-api-card-brand > .home-api-card-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: center;
}

.home-api-card-copy {
  margin: 0.35rem 0 0;
  max-width: none;
  color: #3f4a5a;
  font-size: 0.88rem;
  line-height: 1.36;
  text-align: left;
}

.home-api-card-button {
  margin-top: 0.6rem;
  color: #2454e6;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.md-typeset .admonition.homepage-help,
.md-typeset details.homepage-help {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  border-radius: 16px;
}

.md-typeset .homepage-help > .admonition-title,
.md-typeset .homepage-help > summary {
  background: rgba(37, 99, 235, 0.12);
  border-radius: 16px 16px 0 0;
  font-weight: 700;
}

.md-typeset .homepage-help > .admonition-title::before,
.md-typeset .homepage-help > summary::before {
  background-color: rgb(29, 78, 216);
}

[data-md-color-scheme="slate"] .home-api-card {
  border-color: #313544;
  background: #26282f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

[data-md-color-scheme="slate"] .home-api-card:hover {
  background: #2d2f37;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

[data-md-color-scheme="slate"] .home-api-card-header {
  color: #a7b0c0;
}

[data-md-color-scheme="slate"] .home-api-card-title {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .home-api-card-copy {
  color: #d5dbe6;
}

[data-md-color-scheme="slate"] .home-api-card-button {
  color: #9cb7ff;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.homepage-help,
[data-md-color-scheme="slate"] .md-typeset details.homepage-help {
  border-color: rgba(96, 165, 250, 0.22);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.34), rgba(30, 41, 59, 0.2));
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-typeset .homepage-help > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset .homepage-help > summary {
  background: rgba(59, 130, 246, 0.16);
}

@media (max-width: 1100px) {
  .home-api-card-grid--support {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-api-card {
    padding: 1.1rem;
  }

  .home-api-card-title {
    font-size: 1.15rem;
  }

  .md-typeset .home-api-card-brand > .home-api-card-icon {
    width: 38px;
    height: 38px;
  }

  .home-api-card-brand {
    gap: 8px;
  }

  .home-api-card-copy {
    font-size: 0.82rem;
  }

  .home-api-card-button {
    font-size: 0.9rem;
  }
}
