/* LightPath Training Portal MkDocs Material Theme Overrides */

:root {
  --lms-obsidian: #0b1120;
  --lms-obsidian-elevated: #111a2e;
  --lms-cyan: #00b0f0;
  --lms-cyan-bright: #38bdf8;
  --lms-cyan-deep: #0284c7;
  --lms-emerald: #10b981;
  --lms-border: rgba(0, 176, 240, 0.28);
}

/* Brand accent polish across light and slate schemes */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--lms-obsidian);
  --md-accent-fg-color: var(--lms-cyan);
  --md-accent-fg-color--transparent: rgba(0, 176, 240, 0.14);
}

[data-md-color-scheme="default"] {
  --md-accent-fg-color: var(--lms-cyan-deep);
  --md-accent-fg-color--transparent: rgba(2, 132, 199, 0.1);
}

/* Hero banner */
.lms-hero {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--lms-border);
  box-shadow: 0 12px 32px rgba(11, 17, 32, 0.32);
  margin-bottom: 1.5rem;
  background: var(--lms-obsidian);
}

.lms-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* Core metrics bar */
.lms-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0 1.75rem;
}

.lms-metric {
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--lms-border);
  background: linear-gradient(135deg, rgba(0, 176, 240, 0.1), rgba(11, 17, 32, 0.06));
}

.lms-metric-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--md-accent-fg-color);
  line-height: 1.25;
}

.lms-metric-label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.86;
  margin-top: 0.2rem;
}

/* Quick action pills */
.lms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.75rem;
}

/* Material grid cards enhancement */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border-radius: 12px;
  border-color: rgba(0, 176, 240, 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(0, 176, 240, 0.16);
}

/* Responsive full-width tables with tabular numerals */
.md-typeset__table {
  width: 100%;
}

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

.md-typeset table:not([class]) th {
  background-color: rgba(0, 176, 240, 0.12);
}

/* KaTeX overflow safeguard on mobile */
.arithmatex {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}
