/* Indigo brand palette */
:root {
  --md-primary-fg-color:        #4F00B7;   /* darkPurple — links, nav */
  --md-primary-fg-color--light: #9542FF;   /* mediumPurple */
  --md-primary-fg-color--dark:  #3a0088;
  --md-accent-fg-color:         #5C8E37;   /* mediumGreen — hover / active */
  --md-primary-bg-color:        #FFFFFF;
  --md-local-code-bg-color:     #F1F0F9;
  font-size: 1.25rem;
}

/* Wordmark sizing in header + tint to light purple for visibility on dark header */
.md-header__button.md-logo img {
  height: 36px;
  width: auto;
}

/* Bottom-align logo and site title within the header */
.md-header__button.md-logo,
.md-header__title {
  align-self: flex-end;
}

/* Shift title down so cap-height (not descender) aligns with logo bottom */
.md-header__title {
  font-size: 1.1rem;
  margin-bottom: -3px;
}

/* Site title text in header */
.md-header__title {
  color: #FFFFFF;
}

/* Back-to-site announcement bar */
.md-announce {
  background-color: #F1F0F9;  /* faintPurple */
  color: #4F00B7;
  text-align: center;
  font-size: 0.75rem;
}
.md-announce a {
  color: #4F00B7;
  text-decoration: none;
  font-weight: 500;
}
.md-announce a:hover {
  color: #5C8E37;
}

/* UI element paths (menu items, dialog names, button labels) */
.ui {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  background-color: var(--md-local-code-bg-color);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  font-size: 0.875em;
}

/**/
.ref-head {
  background: rgba(0, 159, 255, 0.5);
  font-family: monospace;
  padding-left: 8px;
  width: 100%;
}

.ref-head-no-code {
  background: rgba(0, 159, 255, 0.75);
  padding-left: 8px;
  width: 100%;
}

/* Primary use is to keep long table entries from line breaking */
.nw {
  white-space: nowrap;
}

/* To simulate code block formatting */
.cb {
  font-family: monospace;
}

/* Command attribute headings*/
.ca {
  background: rgba(0, 159, 255, 0.15);
  padding: 4px 17px 4px 17px;
  font-size: .75rem;
}

/* Content links — classic blue for light mode, lighter blue for dark mode */
.md-content a:not(.md-button):not(.md-tag) {
  color: #0969da;
}
.md-content a:not(.md-button):not(.md-tag):hover {
  color: #0550ae;
}

[data-md-color-scheme="slate"] .md-content a:not(.md-button):not(.md-tag) {
  color: #58a6ff;
}
[data-md-color-scheme="slate"] .md-content a:not(.md-button):not(.md-tag):hover {
  color: #79b8ff;
}

/* DokuWiki <color> fallback spans (non-admonition inline color uses) */
.dw-color-red    { color: #CD5033; }
.dw-color-blue   { color: #4F00B7; }
.dw-color-green  { color: #3B6C35; }
.dw-color-purple { color: #9542FF; }
.dw-color-orange { color: #e07b00; }

/* Expand content into the right-sidebar space (toc.integrate leaves it empty) */
@media screen and (min-width: 76.25em) {
  .md-content {
    max-width: none;
  }
}

/* TOC-only headings — visible in TOC, hidden in page body */
.hidden-toc { display: none; }

/* Active nav and TOC indicators — light mode */
.md-nav__link--active,
.md-nav__item--active > .md-nav__link {
  color: #0969da !important;
}
.md-nav__link--active::before,
.md-nav__item--active > .md-nav__link::before {
  background-color: #0969da !important;
}

/* Active nav and TOC indicators — dark mode */
[data-md-color-scheme="slate"] .md-nav__link--active,
[data-md-color-scheme="slate"] .md-nav__item--active > .md-nav__link {
  color: #0550ae !important;
}
[data-md-color-scheme="slate"] .md-nav__link--active::before,
[data-md-color-scheme="slate"] .md-nav__item--active > .md-nav__link::before {
  background-color: #0550ae !important;
}
