/* AnnoTrain brand violet */

[data-md-color-primary="custom"] {
  --md-primary-fg-color: #5b21b6;
  --md-primary-fg-color--light: #7c3aed;
  --md-primary-fg-color--dark: #4c1d95;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);
}

[data-md-color-accent="custom"] {
  --md-accent-fg-color: #7c3aed;
  --md-accent-fg-color--transparent: rgba(124, 58, 237, 0.1);
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);
}

/* #5b21b6 is too dark for text on the slate dark background, so links (and
   outlined buttons, which reuse the primary color for text/border) use a
   lighter tint of the same hue for readable contrast */
[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #a78bfa;
}

[data-md-color-scheme="slate"] .md-button:not(.md-button--primary) {
  color: #a78bfa;
  border-color: #a78bfa;
}

.md-header,
.md-tabs {
  background-color: var(--md-primary-fg-color);
}

/* Keep code block accent (line numbers, copy button hover) aligned with brand violet */
.md-typeset .highlight .hll,
.md-typeset a:hover {
  color: var(--md-accent-fg-color);
}

/* Avoid mid-word wrapping of inline code (task/field names) inside tables */
.md-typeset table code {
  white-space: nowrap;
}
