/* openDJ colours on top of mdBook's themes: Electric Lilac accents, the
   site's dark background in the default (coal) theme. */
@font-face { font-family: "Inter Tabular"; src: url("/assets/fonts/InterTabular-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tabular"; src: url("/assets/fonts/InterTabular-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Tabular"; src: url("/assets/fonts/InterTabular-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zen Dots"; src: url("/assets/fonts/ZenDots-Regular.ttf") format("truetype"); font-display: swap; }

html { font-family: "Inter Tabular", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.coal {
  --bg: #0e0d17;
  --fg: #ecebf5;
  --sidebar-bg: #15131f;
  --sidebar-fg: #a9a6be;
  --sidebar-non-existant: #75728b;
  --sidebar-active: #B69CFF;
  --sidebar-spacer: #2a2740;
  --scrollbar: #2a2740;
  --icons: #75728b;
  --icons-hover: #ecebf5;
  --links: #B69CFF;
  --inline-code-color: #ecebf5;
  --theme-popup-bg: #15131f;
  --theme-popup-border: #2a2740;
  --theme-hover: #1b1928;
  --quote-bg: #15131f;
  --quote-border: #2a2740;
  --table-border-color: #2a2740;
  --table-header-bg: #15131f;
  --table-alternate-bg: #121120;
  --searchbar-border-color: #2a2740;
  --searchbar-bg: #1b1928;
  --searchbar-fg: #ecebf5;
  --searchresults-header-fg: #a9a6be;
  --searchresults-border-color: #2a2740;
  --searchresults-li-bg: #1b1928;
  --search-mark-bg: #B69CFF;
}
.light, .rust { --links: #6b4fd8; --sidebar-active: #6b4fd8; }

.content main { max-width: 760px; }
.content h1, .content h2, .content h3 { letter-spacing: -0.02em; }
.content h1 { font-weight: 700; }
.content img { border-radius: 12px; border: 1px solid var(--table-border-color); }
.coal pre, .coal code.hljs { background: #15131f; }
.coal :not(pre) > code { background: #1b1928; border: 1px solid #2a2740; border-radius: 6px; padding: 1px 6px; }
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; border: 1px solid var(--table-border-color); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }

.sidebar .sidebar-scrollbox { padding: 18px 18px 18px 22px; }
.chapter li.part-title { color: var(--icons); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75em; font-weight: 600; margin: 22px 0 6px; }

/* Logo + wordmark that links back to opendj.app, added by opendj.js */
.menu-title { display: none; }
.opendj-home { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto; text-decoration: none !important; color: var(--fg) !important; }
.opendj-home img { width: 26px; height: 26px; border-radius: 6px; }
.opendj-home span { font-family: "Zen Dots", sans-serif; font-size: 1.1em; }
.opendj-home small { color: var(--icons); font-size: 0.85em; font-weight: 600; }
