/*
 * Adventive Engineering — light theming over Material defaults.
 * Aligns the site palette with the WeasyPrint PDF house style:
 *   primary navy   #0f172a
 *   secondary navy #1e293b
 *   accent blue    #2563eb
 *   muted gray     #64748b
 *   surface gray   #f1f5f9
 */

:root {
  --md-primary-fg-color:        #2563eb;
  --md-primary-fg-color--light: #3b82f6;
  --md-primary-fg-color--dark:  #1e40af;
  --md-accent-fg-color:         #2563eb;
  --md-accent-fg-color--transparent: rgba(37, 99, 235, 0.1);

  --md-typeset-color:           #0f172a;
  --md-typeset-a-color:         #2563eb;

  --md-code-bg-color:           #f1f5f9;
  --md-code-fg-color:           #0f172a;

  --adv-muted:                  #64748b;
  --adv-divider:                #e2e8f0;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #3b82f6;
  --md-accent-fg-color:         #60a5fa;
  --md-typeset-a-color:         #60a5fa;
}

/* Heading accent bar — mirrors the blue left bar used in the PDFs. */
.md-typeset h2 {
  border-left: 4px solid var(--md-primary-fg-color);
  padding-left: 12px;
  margin-top: 2.5rem;
}

.md-typeset h3 {
  border-left: 2px solid var(--md-primary-fg-color);
  padding-left: 10px;
}

/* Inline code — matches the surface-gray background from STYLE.md. */
.md-typeset code {
  background-color: #f1f5f9;
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

/* Tables — denser header, zebra-stripe odd rows, no vertical rules. */
.md-typeset table:not([class]) th {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 600;
}

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

/* Footer copyright — slightly muted, letter-spaced eyebrow look. */
.md-copyright__highlight {
  color: var(--adv-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* Admonitions — keep them flat, no shadow. */
.md-typeset .admonition,
.md-typeset details {
  box-shadow: none;
  border-left-width: 4px;
}
