/* DragonFly brand colors */
/* Dark green: #061813  |  Lime accent: #bcd752  |  Light bg: #f5f5f5 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ── Core palette overrides ─────────────────────────────────────────── */
[data-md-color-scheme="default"] {
  --md-primary-fg-color:              #061813;
  --md-primary-fg-color--light:       #0d2e1f;
  --md-primary-fg-color--dark:        #030e09;
  --md-primary-bg-color:              #ffffff;
  --md-primary-bg-color--light:       rgba(255,255,255,0.7);

  --md-accent-fg-color:               #bcd752;
  --md-accent-fg-color--transparent:  rgba(188,215,82,0.15);
  --md-accent-bg-color:               #061813;

  --md-typeset-a-color:               #5a7d1a;

  --md-default-bg-color:              #f5f5f5;
  --md-default-fg-color:              #111111;
  --md-default-fg-color--light:       rgba(17,17,17,0.54);
  --md-default-fg-color--lighter:     rgba(17,17,17,0.32);
  --md-default-fg-color--lightest:    rgba(17,17,17,0.12);

  --md-code-bg-color:                 #0d2212;
  --md-code-fg-color:                 #bcd752;
}

/* ── Font ───────────────────────────────────────────────────────────── */
body, .md-typeset {
  font-family: 'Montserrat', sans-serif;
}

.md-header, .md-nav {
  font-family: 'Montserrat', sans-serif;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.md-header {
  background-color: #061813;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.md-header__title {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.md-header__button {
  color: #ffffff;
}

/* ── Navigation tabs ────────────────────────────────────────────────── */
.md-tabs {
  background-color: #061813;
  border-top: 1px solid rgba(188,215,82,0.2);
}

.md-tabs__item--active .md-tabs__link,
.md-tabs__link:hover {
  color: #bcd752;
}

.md-tabs__link {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ── Sidebar nav ────────────────────────────────────────────────────── */
.md-nav__title {
  color: #061813;
  font-weight: 700;
}

.md-nav__link--active,
.md-nav__link:hover {
  color: #5a7d1a;
  font-weight: 600;
}

.md-nav__link--active {
  border-left: 3px solid #bcd752;
  padding-left: 0.5rem;
}

/* ── Search ─────────────────────────────────────────────────────────── */
.md-search__form {
  background-color: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.md-search__input {
  color: #ffffff;
}

.md-search__input::placeholder {
  color: rgba(255,255,255,0.5);
}

/* ── Content ────────────────────────────────────────────────────────── */
.md-main {
  background-color: #f5f5f5;
}

.md-content {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.md-typeset h1 {
  color: #061813;
  font-weight: 800;
  border-bottom: 3px solid #bcd752;
  padding-bottom: 0.4rem;
}

.md-typeset h2 {
  color: #061813;
  font-weight: 700;
}

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

.md-typeset a {
  color: #4a7014;
  font-weight: 500;
}

.md-typeset a:hover {
  color: #bcd752;
}

/* ── Code blocks ────────────────────────────────────────────────────── */
.md-typeset code {
  background-color: #e8f0d0;
  color: #2d4a0a;
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

.md-typeset pre > code {
  background-color: #061813;
  color: #bcd752;
  padding: 0;
}

.md-typeset pre {
  background-color: #061813;
  border-left: 4px solid #bcd752;
  border-radius: 4px;
}

/* ── Tables ─────────────────────────────────────────────────────────── */
.md-typeset table:not([class]) {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.md-typeset table:not([class]) th {
  background-color: #061813;
  color: #ffffff;
  font-weight: 600;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background-color: #f0f5e0;
}

/* ── Admonitions ────────────────────────────────────────────────────── */
.md-typeset .admonition,
.md-typeset details {
  border-left-color: #bcd752;
  border-radius: 4px;
}

.md-typeset .admonition-title,
.md-typeset summary {
  background-color: rgba(188,215,82,0.15);
  font-weight: 600;
}

.md-typeset .note > .admonition-title,
.md-typeset .note > summary {
  background-color: rgba(6,24,19,0.08);
}

.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary {
  background-color: rgba(188,215,82,0.2);
}

/* ── Checklist items ────────────────────────────────────────────────── */
.md-typeset .task-list-indicator::before {
  background-color: #bcd752;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.md-footer {
  background-color: #061813;
  color: rgba(255,255,255,0.7);
}

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

.md-footer__link {
  color: #bcd752;
}

.md-footer__link:hover {
  color: #ffffff;
}

/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar-thumb {
  background-color: #bcd752;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

/* ── Back to top button ─────────────────────────────────────────────── */
.md-top {
  background-color: #061813;
  color: #bcd752;
}

/* ── Tag chips ──────────────────────────────────────────────────────── */
.md-tag {
  background-color: rgba(188,215,82,0.15);
  color: #3d5c10;
}
