/* ============================================================
   WDT Dark Mode — style/dark.css
   Loaded via css: in _quarto.yml (both themes).
   Quarto adds .quarto-dark to <body> when dark mode is active.
   All selectors are prefixed with body.quarto-dark so these
   rules only fire in dark mode.
   ============================================================ */

/* ── Outer content frame ──────────────────────────────────── */

body.quarto-dark .page-layout-article,
body.quarto-dark .page-layout-full,
body.quarto-dark #quarto-content {
  background-color: #1a1a2e !important;
  border-color: #FFD700 !important;
  outline-color: #000 !important;
}

/* ── Inner content panel ──────────────────────────────────── */

body.quarto-dark .quarto-container,
body.quarto-dark #quarto-document-content,
body.quarto-dark .content {
  background-color: #12121f !important;
  border-color: #3d0080 !important;
  color: #d4d0e8 !important;
}

/* ── Body ─────────────────────────────────────────────────── */

body.quarto-dark {
  color: #d4d0e8 !important;
  background-color: #2B0055 !important;
}

/* ── Headings ─────────────────────────────────────────────── */

body.quarto-dark h1 {
  background-color: #1a1a2e !important;
  color: #FFD700 !important;
  border-bottom-color: #FFD700 !important;
}

body.quarto-dark h2 {
  color: #c4b5fd !important;
  border-bottom-color: #3d0080 !important;
}

body.quarto-dark h3 { color: #c4b5fd !important; }
body.quarto-dark h4 { color: #a78bfa !important; }

/* ── Links ────────────────────────────────────────────────── */

body.quarto-dark a         { color: #a78bfa !important; }
body.quarto-dark a:visited { color: #c4b5fd !important; }
body.quarto-dark a:hover   { color: #FFD700 !important; }

/* ── Tables ───────────────────────────────────────────────── */

body.quarto-dark td { border-color: #3d0080 !important; }

body.quarto-dark tr:nth-child(even) { background-color: #1a1a2e !important; }
body.quarto-dark tr:hover           { background-color: #210040 !important; }

/* ── Blockquotes ──────────────────────────────────────────── */

body.quarto-dark blockquote {
  background-color: #1a1a2e !important;
  color: #c4b5fd !important;
}

/* ── Code ─────────────────────────────────────────────────── */

body.quarto-dark code,
body.quarto-dark pre {
  background-color: #1a1a2e !important;
  border-color: #3d0080 !important;
  color: #c4b5fd !important;
}

/* ── Callouts ─────────────────────────────────────────────── */

body.quarto-dark .callout {
  background-color: #1a1a2e !important;
  border-color: #3d0080 !important;
}

/* ── Internal bibliography ────────────────────────────────── */

body.quarto-dark .internal-bibliography {
  background-color: #1a1a2e !important;
  border-left-color: #FFD700 !important;
  border-color: #3d0080 !important;
}

/* ── Reference entries ────────────────────────────────────── */

body.quarto-dark .wdt-ref-entry {
  background-color: #12121f !important;
  border-left-color: #FFD700 !important;
  border-color: #3d0080 !important;
}

body.quarto-dark .wdt-ref-entry:hover {
  background-color: #1a1a2e !important;
  border-left-color: #FFD700 !important;
}

body.quarto-dark .wdt-ref-cited         { color: #c4b5fd !important; }
body.quarto-dark .wdt-ref-cited a       { color: #c4b5fd !important; }
body.quarto-dark .wdt-ref-cited a:hover { color: #FFD700 !important; }
body.quarto-dark .wdt-ref-no-link       { color: #555 !important; }

/* ── HR ───────────────────────────────────────────────────── */

body.quarto-dark hr {
  border-top-color: #3d0080 !important;
  border-bottom-color: #1a1a2e !important;
}