/* ============================================================
   DIVA Documentation — design system tokens from diva-web
   ============================================================ */

:root,
[data-md-color-scheme="slate"] {
  /* surfaces */
  --bg:        #05070d;
  --bg-1:      #080b14;
  --bg-2:      #0b101e;
  --bg-3:      #0e1626;

  /* lines */
  --line:        rgba(126, 156, 198, 0.10);
  --line-strong: rgba(126, 170, 220, 0.20);

  /* accents */
  --cyan:      #34d6ee;
  --cyan-glow: rgba(52, 214, 238, 0.55);

  /* text */
  --text:   #e9eef7;
  --muted:  #9aa8bf;
  --faint:  #62718a;

  /* Material overrides */
  --md-primary-fg-color:        #34d6ee;
  --md-primary-fg-color--light: #34d6ee;
  --md-primary-fg-color--dark:  #0e7d93;
  --md-primary-bg-color:        #05070d;
  --md-accent-fg-color:         #34d6ee;

  --md-default-bg-color:        #05070d;
  --md-default-fg-color:        #e9eef7;
  --md-default-fg-color--light: #9aa8bf;
  --md-default-fg-color--lighter: #62718a;

  --md-code-bg-color:           #0b101e;
  --md-code-fg-color:           #e9eef7;

  --md-typeset-a-color:         #34d6ee;
}

/* ---- Header ---- */
.md-header {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.md-header__title { font-weight: 600; letter-spacing: -0.02em; }

/* ---- Nav tabs ---- */
.md-tabs { background: var(--bg-1); border-bottom: 1px solid var(--line); }
.md-tabs__link--active,
.md-tabs__link:hover { color: var(--cyan) !important; }
.md-tabs__indicator { background: var(--cyan); }

/* ---- Sidebar ---- */
.md-nav__link--active { color: var(--cyan) !important; }
.md-nav__link:hover { color: var(--cyan); }

/* ---- Content ---- */
.md-content { background: var(--bg); }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { letter-spacing: -0.02em; }

/* code blocks */
.md-typeset code { background: var(--bg-2); border-radius: 3px; }
.md-typeset pre > code { background: var(--bg-2); }
.highlight { background: var(--bg-2) !important; }

/* ---- Search ---- */
.md-search__input { background: var(--bg-2); }

/* ============================================================
   DIVA Footer — mirrors diva-web footer exactly
   ============================================================ */
.diva-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 48px 0 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

.diva-footer__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.diva-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 40px;
}

.diva-footer__brand img {
  height: 40px;
  width: auto;
  display: block;
}

.diva-footer__tag {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 14px 0 0;
  max-width: 280px;
}

.diva-footer__col-h {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.diva-footer__col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.diva-footer__col a:hover { color: var(--cyan); }

.diva-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--faint);
  flex-wrap: wrap;
}

.diva-footer__base a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}

.diva-footer__base a:hover { opacity: 0.75; }

/* hide the default Material footer meta (keep nav prev/next) */
.md-footer-meta { display: none; }

/* ============================================================
   API Reference — reduce visual noise from mkdocstrings output
   ============================================================ */

/* Smaller base font in all API content */
.md-typeset .doc,
.md-typeset .doc-contents { font-size: 0.82rem; line-height: 1.55; }

.md-typeset .doc p,
.md-typeset .doc li { font-size: 0.82rem; }

/* Headings inside API docs — more compact */
.md-typeset .doc h1 { font-size: 1.35rem; }
.md-typeset .doc h2 { font-size: 1.1rem;  }
.md-typeset .doc h3,
.md-typeset .doc h4 { font-size: 0.95rem; }

/* Signature / heading row */
.md-typeset .doc-heading,
.md-typeset .doc-heading code { font-size: 0.85rem !important; }

/* ---- Badges (.doc-symbol) ---- */
.md-typeset .doc-symbol {
  font-size: 0.67rem !important;
  font-weight: 500 !important;
  padding: 1px 5px !important;
  border-radius: 3px !important;
  letter-spacing: 0.02em !important;
  vertical-align: middle;
}

/* All types → muted palette, no loud colors */
.md-typeset .doc-symbol-attribute,
.md-typeset .doc-symbol-classmethod,
.md-typeset .doc-symbol-method,
.md-typeset .doc-symbol-function,
.md-typeset .doc-symbol-property {
  background: rgba(126, 156, 198, 0.12) !important;
  color: var(--muted) !important;
  border: none !important;
}

.md-typeset .doc-symbol-class,
.md-typeset .doc-symbol-module {
  background: rgba(52, 214, 238, 0.10) !important;
  color: #7ecfdb !important;
  border: none !important;
}

/* "class-attribute" / "instance-attribute" inline labels */
.md-typeset [class*="doc-label"] {
  font-size: 0.67rem !important;
  opacity: 0.7;
  background: rgba(126, 156, 198, 0.10) !important;
  color: var(--muted) !important;
  border: none !important;
}

/* Details / admonitions (Usage example, Fetch arguments…) */
.md-typeset .doc details,
.md-typeset .doc .doc-contents details {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px;
  box-shadow: none !important;
  font-size: 0.8rem;
  margin: 6px 0;
}

.md-typeset .doc details > summary,
.md-typeset .doc .doc-contents details > summary {
  color: var(--muted) !important;
  font-size: 0.8rem !important;
  padding: 7px 12px 7px 2.4rem !important;
  background: transparent !important;
}

.md-typeset .doc details > summary::before {
  color: var(--faint) !important;
}

/* Admonition-style boxes inside API (warning, note, etc.) */
.md-typeset .doc .admonition {
  font-size: 0.8rem;
  border-left-color: var(--cyan) !important;
  background: var(--bg-2) !important;
}

/* ============================================================
   Under Construction page
   ============================================================ */
.uc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 60px 0 40px;
  text-align: center;
}

.uc-img {
  max-width: 380px;
  width: 100%;
  opacity: 0.9;
}

.uc-msg {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 860px) {
  .diva-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .diva-footer__wrap { padding: 0 18px; }
  .diva-footer__grid { grid-template-columns: 1fr; }
  .diva-footer__base { gap: 8px 16px; }
}
