/* ── White header / toolbar ─────────────────────────────── */
.md-header {
  background-color: #fff;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.md-header[data-md-state="shadow"] {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-header__title {
  color: #1a1a2e;
  font-weight: 600;
}

/* Search bar on white header */
.md-search__input {
  background-color: #f5f5f7;
  color: #333;
}

.md-search__input::placeholder {
  color: #888;
}

.md-search__icon {
  color: #666;
}

/* Header links & icons */
.md-header .md-header__button,
.md-header .md-source {
  color: #555;
}

.md-header .md-header__button:hover,
.md-header .md-source:hover {
  color: #1a1a2e;
}

/* Tabs bar (if enabled) */
.md-tabs {
  background-color: #fafafa;
  border-bottom: 1px solid #eee;
}

.md-tabs__link {
  color: #555;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: #4051b5;
}

/* ── Sidebar ───────────────────────────────────────────── */
.md-sidebar {
  border-right: none;
}

.md-nav__title {
  font-weight: 600;
  color: #1a1a2e;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.md-nav__link {
  color: #555;
  font-size: 0.82rem;
}

.md-nav__link:hover {
  color: #4051b5;
}

.md-nav__link--active {
  color: #4051b5;
  font-weight: 600;
}

/* ── Content area ──────────────────────────────────────── */
.md-content {
  max-width: 52rem;
}

.md-typeset h1 {
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

.md-typeset h2 {
  font-weight: 600;
  color: #1a1a2e;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.4rem;
}

.md-typeset h3 {
  font-weight: 600;
  color: #333;
}

/* Inline code */
.md-typeset code {
  background-color: #f0f1f4;
  border: none;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.82em;
  color: #d63384;
}

/* Code blocks */
.md-typeset pre > code {
  color: inherit;
  background: none;
  padding: 0;
}

.md-typeset pre {
  border-radius: 8px;
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.82rem;
}

.md-typeset table:not([class]) th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #1a1a2e;
  border-bottom: 2px solid #e5e7eb;
}

.md-typeset table:not([class]) td {
  border-bottom: 1px solid #f0f0f0;
}

.md-typeset table:not([class]) tr:last-child td {
  border-bottom: none;
}

/* ── TOC (right sidebar) ──────────────────────────────── */
.md-sidebar--secondary .md-nav__title {
  font-size: 0.7rem;
  color: #888;
}

.md-sidebar--secondary .md-nav__link {
  font-size: 0.78rem;
  color: #777;
}

.md-sidebar--secondary .md-nav__link--active {
  color: #4051b5;
}

/* ── Footer ────────────────────────────────────────────── */
.md-footer {
  background-color: #fafafa;
  color: #666;
  border-top: 1px solid #eee;
}

.md-footer-meta {
  background-color: #fafafa;
}

/* ── Accent color variable override ────────────────────── */
:root {
  --md-primary-fg-color: #fff;
  --md-primary-bg-color: #1a1a2e;
  --md-accent-fg-color: #4051b5;
}
