/* pagescan documentation — light branding overrides for pydata-sphinx-theme. */

:root {
  --pst-color-primary: #2563eb;        /* blue-600 */
  --pst-color-secondary: #0ea5e9;      /* sky-500 */
  --pst-color-link: #2563eb;
  --pst-color-link-hover: #1e40af;     /* blue-800 */
}

html[data-theme="dark"] {
  --pst-color-primary: #60a5fa;        /* blue-400 */
  --pst-color-secondary: #38bdf8;      /* sky-400 */
  --pst-color-link: #93c5fd;
  --pst-color-link-hover: #bfdbfe;
}

/* Slightly tighter code blocks for dense API pages */
.highlight pre {
  font-size: 0.92em;
  line-height: 1.5;
}

/* Make the project title in the navbar a bit more confident */
.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* sphinxcontrib-mermaid pins SVGs to height: 500px, which squashes
   multi-node flowcharts and shrinks labels to unreadable. Let them
   grow to natural height instead. */
pre.mermaid > svg,
.mermaid-container > pre > svg {
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto;
  display: block;
}
