/* AirDB Documentation Custom Theme */

:root {
  --md-primary-fg-color: #2b3948;
  --md-primary-fg-color--light: #3f5267;
  --md-primary-fg-color--dark: #1e2833;
  --md-accent-fg-color: #478cbf;
  --md-typeset-a-color: #3b82f6;
  --md-code-font: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #1f2730;
  --md-primary-fg-color--light: #2b3542;
  --md-primary-fg-color--dark: #141a20;
  --md-accent-fg-color: #5bb3f0;
  --md-typeset-a-color: #60a5fa;
}

/* Sidebar styling matching Godot documentation tree */
.md-nav__item .md-nav__link {
  font-size: 0.82rem;
  line-height: 1.45;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 4px;
}

.md-nav__item--active > .md-nav__link {
  font-weight: 600;
  color: var(--md-accent-fg-color);
}

.md-nav__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Crisp headings */
.md-typeset h1 {
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.5rem;
}

.md-typeset h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.3rem;
}

.md-typeset h3 {
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-top: 1.6rem;
}

/* Clean admonitions */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 6px;
  box-shadow: none;
  border-left-width: 4px;
  font-size: 0.85rem;
}

/* Code blocks */
.md-typeset pre > code {
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Tables */
.md-typeset table:not([class]) {
  border-radius: 6px;
  font-size: 0.83rem;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset table:not([class]) th {
  background-color: var(--md-default-bg-color--lighter);
  font-weight: 650;
}
