/* Hero section styling */
.md-content h1 {
  font-size: 3rem !important;
  font-weight: 700;
  margin-bottom: 0;
}

/* Center badges */
.md-content p:has(a[href*="badge"]) {
  text-align: center;
}

/* Grid cards for features */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.grid.cards > ul {
  display: contents;
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid.cards > ul > li {
  background: var(--md-code-bg-color);
  border-radius: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid.cards > ul > li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grid.cards > ul > li > p:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.grid.cards > ul > li > hr {
  margin: 0.75rem 0;
  border: none;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

/* Style icons in cards */
.grid.cards .lg.middle {
  font-size: 1.5rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Italicized genre text */
.grid.cards em {
  color: var(--md-default-fg-color--light);
  font-size: 0.85rem;
}

/* Button styling */
.md-button {
  margin: 0.25rem;
}

/* Table styling */
.md-typeset table:not([class]) {
  font-size: 0.85rem;
}

/* Code block in hero */
.md-content > .highlight:first-of-type {
  margin-top: 2rem;
}

/* Horizontal rule styling */
.md-typeset hr {
  margin: 2.5rem 0;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

/* Feature list styling */
.md-typeset ul:not(.grid ul) li {
  margin-bottom: 0.25rem;
}

/* Tab styling improvements */
.md-typeset .tabbed-set {
  margin: 1rem 0;
}

/* Admonition styling */
.md-typeset .admonition {
  margin: 1.5rem 0;
}
