/* Nexo dashboard-aligned docs theme */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #4264fc;
  --md-primary-fg-color--light: #6b84ff;
  --md-primary-fg-color--dark: #2747d9;
  --md-accent-fg-color: #4264fc;
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: #000000;
  --md-typeset-color: #111111;
  --md-typeset-a-color: #4264fc;
  --md-code-bg-color: #f5f5f5;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #4264fc;
  --md-primary-fg-color--light: #6b84ff;
  --md-primary-fg-color--dark: #2747d9;
  --md-accent-fg-color: #6b84ff;
  --md-default-bg-color: #000000;
  --md-default-fg-color: #ffffff;
  --md-typeset-color: #f5f5f5;
  --md-typeset-a-color: #8fa2ff;
  --md-code-bg-color: #1e1e1e;
}

.md-header {
  border-bottom: 1px solid rgba(66, 100, 252, 0.18);
}

.md-tabs {
  border-bottom: 1px solid rgba(66, 100, 252, 0.12);
}

.md-main__inner {
  margin-top: 0.35rem;
}

.md-typeset h1 {
  margin-top: 0.15rem;
  margin-bottom: 0.7rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.md-typeset h2 {
  margin-top: 1.25rem;
  font-weight: 700;
}

.md-typeset p,
.md-typeset li {
  line-height: 1.62;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 10px;
}

.md-typeset table:not([class]) {
  border: 1px solid rgba(66, 100, 252, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: linear-gradient(
    90deg,
    rgba(66, 100, 252, 0.09),
    rgba(66, 100, 252, 0.04)
  );
  font-weight: 650;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding-top: 0.66rem;
  padding-bottom: 0.66rem;
}

.md-typeset code {
  border-radius: 6px;
  padding: 0.12em 0.35em;
}

.md-typeset blockquote {
  border-left: 3px solid #4264fc;
  background: rgba(66, 100, 252, 0.08);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
}

.md-button--primary {
  border-radius: 999px;
}

.md-button {
  border-radius: 999px;
}

/* Keep Mermaid rendering readable and on-brand in both color schemes. */
.md-typeset .mermaid svg {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif !important;
}

.md-typeset .mermaid .actor,
.md-typeset .mermaid .labelBox,
.md-typeset .mermaid .section0,
.md-typeset .mermaid .section2 {
  fill: #eef2ff !important;
  stroke: #4264fc !important;
}

.md-typeset .mermaid .note,
.md-typeset .mermaid .section1,
.md-typeset .mermaid .section3 {
  fill: #f5f7ff !important;
  stroke: #6b84ff !important;
}

.md-typeset .mermaid .messageLine0,
.md-typeset .mermaid .messageLine1,
.md-typeset .mermaid .flowchart-link,
.md-typeset .mermaid .arrowheadPath,
.md-typeset .mermaid .edgePath .path {
  stroke: #2747d9 !important;
}

.md-typeset .mermaid .label,
.md-typeset .mermaid text,
.md-typeset .mermaid .actor > text,
.md-typeset .mermaid .loopText > text {
  fill: #111111 !important;
}
