/* Center hero content when no image */
.VPHero .main {
  text-align: center !important;
}

.VPHero .name,
.VPHero .text,
.VPHero .tagline {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.VPHero .actions {
  justify-content: center !important;
}

.VPHero {
  padding-bottom: 0 !important;
}

.VPHome .VPContent .container {
  margin-top: -2rem;
}

/* Homepage catalog layout */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

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

.catalog-grid table {
  width: 100%;
  font-size: 0.9rem;
}

.catalog-grid th,
.catalog-grid td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--vp-c-divider);
}

.catalog-grid th {
  font-weight: 600;
  color: var(--vp-c-text-1);
  background: var(--vp-c-bg-soft);
}

.catalog-grid td:first-child {
  width: 2.2rem;
  color: var(--vp-c-brand-1);
  font-weight: 500;
  text-align: center;
}

.catalog-grid td:nth-child(2) {
  white-space: nowrap;
}

.catalog-grid td:nth-child(3) {
  color: var(--vp-c-text-2);
  font-size: 0.85rem;
}

.catalog-grid td:nth-child(4) {
  width: 3rem;
  text-align: right;
  color: var(--vp-c-text-3);
  font-size: 0.8rem;
}

.catalog-cta {
  margin-top: 1rem;
  text-align: right;
}

.catalog-cta a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  background: var(--vp-c-brand-1);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.catalog-cta a:hover {
  opacity: 0.85;
}

/* Add spacing between article content and Giscus comment section */
.blog-comment-wrapper {
  margin-top: 3rem;
}


