:root {
  --pst-header-height: 100px;
  --pst-color-primary: #0056b3; /* Standard readable blue */
  --pst-color-secondary: #ee4c2c;
}

/* --- Global Reset --- */
body {
  background-color: #ffffff !important;
  color: #333333 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* --- Header / Navbar (Keep Black for Logo Visibility) --- */
.bd-header {
  background-color: #000000 !important;
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 75px !important;
  margin-right: 0; /* No margin needed if no text */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3)); /* Subtle glow */
}

/* Ensure text is hidden if theme still tries to render it */
.navbar-brand-text {
  display: none !important;
}

/* Header Links - White text on Black header */
.bd-header .nav-link {
  color: #e0e0e0 !important;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.bd-header .nav-link:hover,
.bd-header .nav-link.active {
  color: #ffffff !important;
  text-decoration: none;
  border-bottom: 2px solid #ffffff;
}

/* --- Sidebar --- */
.bd-sidebar-primary {
  background-color: #f8f9fa !important;
  border-right: 1px solid #e1e4e8;
}

.bd-sidebar-secondary {
  background-color: #f8f9fa !important;
  border-left: 1px solid #e1e4e8;
}

.bd-links .bd-link {
  color: #555555;
}

.bd-links .bd-link:hover,
.bd-links .bd-link.active {
  color: #000000;
  font-weight: 600;
  border-left-color: #000000;
}

/* --- Main Content --- */
.bd-main .bd-content .bd-article-container {
  background-color: #ffffff !important;
}

article {
  background: #ffffff;
  padding: 20px 0;
  color: #333;
  box-shadow: none;
  border: none;
}

article::before { display: none; } /* Remove holographic border */

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: #000000 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-transform: none;
  text-shadow: none;
  border: none;
}

h1 {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 2rem;
}

p, li {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* --- Code Blocks --- */
div.highlight {
  background: #f6f8fa !important;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  box-shadow: none;
}

div.highlight pre {
  font-family: 'Consolas', 'Monaco', monospace;
  color: #24292e;
}

/* Standard Syntax Highlighting */
.highlight .k { color: #d73a49; font-weight: bold; }
.highlight .s2 { color: #032f62; }
.highlight .nt { color: #22863a; }
.highlight .nf { color: #6f42c1; }

/* --- Admonitions --- */
.admonition {
  background-color: #f8f9fa !important;
  border: 1px solid #eee !important;
  border-left: 4px solid #007bff !important;
}

.admonition-title {
  background-color: #e9ecef !important;
  color: #495057 !important;
  font-family: inherit;
}

.admonition.note { border-color: #17a2b8 !important; }
.admonition.note .admonition-title { color: #0c5460 !important; background: #d1ecf1 !important; }

/* --- Search Box --- */
.bd-search .search-button {
  border: 1px solid #555 !important;
  color: #ccc !important;
  background: rgba(255,255,255,0.1) !important;
}

.bd-search .search-button:hover {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* --- Footer --- */
footer.bd-footer {
  background-color: #f8f9fa !important;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
}

footer .copyright, footer .sphinx-version {
  color: #6c757d;
  font-family: inherit;
}

/* Scrollbars - Standard */
::-webkit-scrollbar {
  width: 8px;
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
