/* Clean, light styling */

:root {
  --md-primary-fg-color: #111;
  --md-primary-bg-color: #fff;
  --md-accent-fg-color: #0070f3;
  --md-default-bg-color: #fff;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #eee;
  --md-primary-bg-color: #1a1a1a;
  --md-accent-fg-color: #3291ff;
  --md-default-bg-color: #111;
}

/* Light header */
.md-header {
  background-color: #fff !important;
  color: #111 !important;
  box-shadow: 0 1px 0 #eaeaea;
}

[data-md-color-scheme="slate"] .md-header {
  background-color: #111 !important;
  box-shadow: 0 1px 0 #333;
}

.md-header__title {
  color: #111 !important;
  font-size: 0.9rem;
}

[data-md-color-scheme="slate"] .md-header__title {
  color: #fff !important;
}

/* Header icons & search */
.md-header .md-icon,
.md-header__button {
  color: #111 !important;
}

[data-md-color-scheme="slate"] .md-header .md-icon,
[data-md-color-scheme="slate"] .md-header__button {
  color: #fff !important;
}

.md-search__input {
  background-color: #f5f5f5 !important;
  color: #111 !important;
}

.md-search__input::placeholder {
  color: #666 !important;
}

/* Smaller fonts */
.md-typeset {
  font-size: 0.8rem;
  line-height: 1.6;
}

.md-typeset h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.md-typeset h2 {
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.4rem;
  margin-top: 1.5rem;
}

.md-typeset h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.md-typeset h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Navigation */
.md-nav__link {
  font-size: 0.8rem;
}

.md-nav__item--active > .md-nav__link {
  color: var(--md-accent-fg-color);
  font-weight: 500;
}

/* Sidebar title */
.md-nav--primary .md-nav__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

/* Tables */
.md-typeset table:not([class]) {
  font-size: 0.75rem;
}

.md-typeset table:not([class]) th {
  font-weight: 600;
  background-color: #fafafa;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: #222;
}

/* Code */
.md-typeset code {
  font-size: 0.75rem;
  padding: 0.15em 0.4em;
}

.md-typeset pre code {
  font-size: 0.75rem;
}

/* Content width */
.md-content {
  max-width: 850px;
}

/* Links */
.md-typeset a {
  color: var(--md-accent-fg-color);
}

/* Search */
.md-search__input {
  font-size: 0.8rem;
}

/* TOC */
.md-nav__link {
  font-size: 0.75rem;
}

/* Admonitions */
.md-typeset .admonition {
  font-size: 0.8rem;
}
