/* LightPath ASD-STF100 MkDocs Material Theme Overrides */

:root {
  --stf-indigo: #3f51b5;
  --stf-indigo-bright: #818cf8;
  --stf-cyan: #06b6d4;
  --stf-cyan-bright: #22d3ee;
  --stf-surface: rgba(30, 27, 75, 0.08);
}

/* Brand accent polish across light and slate schemes */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #3949ab;
  --md-primary-fg-color--light: #5c6bc0;
  --md-primary-fg-color--dark: #283593;
  --md-accent-fg-color: #0891b2;
  --md-accent-fg-color--transparent: rgba(8, 145, 178, 0.1);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #3f51b5;
  --md-primary-fg-color--light: #5c6bc0;
  --md-primary-fg-color--dark: #1e1b4b;
  --md-accent-fg-color: #22d3ee;
  --md-accent-fg-color--transparent: rgba(34, 211, 238, 0.12);
}

/* Material grid cards enhancement */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border-radius: 12px;
  border-color: rgba(63, 81, 181, 0.24);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  transform: translateY(-2px);
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.16);
}

/* Responsive table wrapper and tabular numeric alignment */
.md-typeset__scrollwrap {
  margin: 1rem 0;
}

.md-typeset__table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.md-typeset table:not([class]) {
  width: 100%;
  font-variant-numeric: tabular-nums;
  border-radius: 8px;
}

.md-typeset table:not([class]) th {
  background-color: rgba(63, 81, 181, 0.12);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: rgba(34, 211, 238, 0.1);
}

/* Keep Mermaid diagrams centered and responsive */
.md-typeset .mermaid {
  text-align: center;
  max-width: 100%;
  overflow-x: auto;
}
