/* LightPath API Executor MkDocs Material Theme Overrides */

:root {
  --apiexec-cyan: #00f2fe;
  --apiexec-blue: #0088cc;
  --apiexec-emerald: #10b981;
  --apiexec-void: #070d18;
  --apiexec-surface: rgba(15, 23, 42, 0.72);
}

/* Brand accent polish across light and slate schemes */
[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #00f2fe;
  --md-accent-fg-color--transparent: rgba(0, 242, 254, 0.12);
}

[data-md-color-scheme="default"] {
  --md-accent-fg-color: #0088cc;
  --md-accent-fg-color--transparent: rgba(0, 136, 204, 0.1);
}

/* Hero banner */
.apiexec-hero {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 136, 204, 0.28);
  box-shadow: 0 12px 32px rgba(7, 13, 24, 0.25);
  margin-bottom: 1.5rem;
  background: var(--apiexec-void);
}

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

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

.apiexec-metric {
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(0, 136, 204, 0.28);
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.08), rgba(0, 242, 254, 0.04));
}

.apiexec-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;
}

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

/* Quick action pills */
.apiexec-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, 136, 204, 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, 136, 204, 0.14);
}

/* Responsive full-width tables */
.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, 136, 204, 0.12);
}

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