/*
 * IMMERSE Documentation — custom theme tweaks
 * Built on top of MkDocs Material with amber palette to match IMMERSE Studio
 */

/* Specific amber tone matching Studio's UI */
:root {
  --md-primary-fg-color: #d97706;
  --md-primary-fg-color--light: #f59e0b;
  --md-primary-fg-color--dark: #b45309;
  --md-accent-fg-color: #f59e0b;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #1a1612;
  --md-default-bg-color--light: #2a241e;
  --md-primary-fg-color: #f59e0b;
  --md-accent-fg-color: #fbbf24;
  --md-typeset-a-color: #fbbf24;
}

/* Tighten the body text spacing — docs read better dense */
.md-typeset {
  font-size: 0.78rem;
  line-height: 1.65;
}

/* Code blocks: monospace, slight border, more contrast */
.md-typeset code {
  font-size: 0.82em;
  border-radius: 3px;
}

[data-md-color-scheme="slate"] .md-typeset pre > code {
  background-color: #0f0c08;
  border: 1px solid #2a241e;
}

/* Tables: more breathing room */
.md-typeset table:not([class]) {
  font-size: 0.75rem;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color--dark);
  color: white;
  font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: #2a241e;
  color: #fbbf24;
}

/* Section tabs (top nav) — matches Studio's amber accent */
.md-tabs {
  background-color: var(--md-primary-fg-color--dark);
}

.md-tabs__link--active {
  font-weight: 700;
}

/* Header brand tweak */
.md-header__title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Admonitions — slightly more prominent */
.md-typeset .admonition {
  border-radius: 6px;
}

/* Search box: comfy width */
.md-search__form {
  border-radius: 6px;
}

/* Footer copyright: subtle */
.md-footer-meta {
  background-color: #0f0c08;
}

/* "Back to top" button styling */
.md-top {
  background-color: var(--md-primary-fg-color);
}

/* Make ASCII art / box-drawing diagrams readable in code blocks */
.md-typeset pre > code {
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-variant-ligatures: none;
}
