/* CertusOrdo Documentation Custom Styles */

:root {
  --md-primary-fg-color: #7c3aed;
  --md-primary-fg-color--light: #8b5cf6;
  --md-primary-fg-color--dark: #6d28d9;
  --md-accent-fg-color: #f59e0b;
}

/* Logo styling */
.md-header__button.md-logo img {
  height: 1.5rem;
}

/* Code block improvements */
.highlight code {
  font-size: 0.85em;
}

/* Admonition styling */
.md-typeset .admonition.success,
.md-typeset details.success {
  border-color: #10b981;
}

.md-typeset .admonition.success > .admonition-title,
.md-typeset details.success > summary {
  background-color: rgba(16, 185, 129, 0.1);
}

/* Table improvements */
.md-typeset table:not([class]) {
  font-size: 0.9em;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: white;
}

/* Hero section on homepage */
.md-typeset h1 {
  font-weight: 700;
}

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

.grid.cards > ul > li {
  list-style: none;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1rem;
}

.grid.cards > ul > li:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Warning/danger blocks */
.md-typeset .admonition.warning,
.md-typeset .admonition.danger {
  border-left-width: 4px;
}

/* Responsive tables */
@media screen and (max-width: 76.1875em) {
  .md-typeset table {
    display: block;
    overflow-x: auto;
  }
}
