/* pygixml brand customization for Furo.
 * Ties the docs site's accent color to the ACTUAL logo color
 * (docs/images/pygixml.svg, #e67225 "pygixml orange") -- the same
 * brand used by the landing page (docs/landing/) and the benchmark
 * report (benchmarks/report/), so all three read as one coherent
 * site instead of three different accent colors bolted together. */

:root {
  --color-brand-primary: #c85a12;
  --color-brand-content: #b34f10;
  --color-brand-visited: #7048c4;
  --pygixml-accent-soft: #fdf0e7;
}

body[data-theme="dark"] {
  --color-brand-primary: #e67225;
  --color-brand-content: #f2954f;
  --color-brand-visited: #b98bff;
  --pygixml-accent-soft: rgba(230, 114, 37, 0.10);
}

@media (prefers-color-scheme: dark) {
  body[data-theme="auto"] {
    --color-brand-primary: #e67225;
    --color-brand-content: #f2954f;
    --color-brand-visited: #b98bff;
    --pygixml-accent-soft: rgba(230, 114, 37, 0.10);
  }
}

/* Slightly warmer, less boxy code blocks -- matches the report's own
   rounded, low-contrast panels instead of Furo's sharper default. */
.highlight {
  border-radius: 10px;
}

/* Sidebar: give the current page a filled pill instead of a bare
   underline, using the brand color -- easier to scan at a glance. */
.sidebar-tree .current-page > .reference {
  background: var(--pygixml-accent-soft);
  border-radius: 6px;
}

/* h2 gets a thin brand-colored rule instead of Furo's plain border --
   a small, consistent visual anchor as you scroll through a long page. */
h2 {
  border-bottom: 2px solid var(--color-brand-primary);
  padding-bottom: 0.3em;
}
