:root {
  --md-primary-fg-color: #4051b5;
  --md-primary-bg-color: #ffffff;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #7c8dff;
}

.md-typeset h1 {
  font-weight: 700;
}

.md-typeset .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.md-typeset .grid .card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.md-typeset .grid .card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.md-typeset .grid .card h3 {
  margin-top: 0;
}

.md-typeset .hero {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

.md-typeset .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.md-typeset .hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 48rem;
  margin: 0 auto;
}

.md-typeset .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  text-align: center;
}

.md-typeset .stat-grid .stat {
  padding: 1rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
}

.md-typeset .stat-grid .stat .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  display: block;
}

.md-typeset .stat-grid .stat .label {
  font-size: 0.85rem;
  opacity: 0.7;
  display: block;
  margin-top: 0.25rem;
}

.md-typeset table {
  font-size: 0.85rem;
}

.md-typeset .highlight-box {
  background: var(--md-code-bg-color);
  border-left: 4px solid var(--md-primary-fg-color);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}
