/**
 * Simplified Sunnova branding styles with improved readability
 */

 :root {
  /* Brand colors */
  --sunnova-orange: #FF8200;
  --sunnova-deep-purple: #262673;
  --sunnova-dark-orange: #E67300;
  --sunnova-yellow: #FFCC00;
}

/* Headings styling */
h1 {
  color: var(--sunnova-deep-purple);
  border-bottom: 2px solid var(--sunnova-orange);
  padding-bottom: 0.3em;
}

[data-md-color-scheme="slate"] h1 {
  color: var(--sunnova-orange);
  border-bottom-color: var(--sunnova-yellow);
}

h2 {
  color: var(--sunnova-deep-purple);
}

[data-md-color-scheme="slate"] h2 {
  color: var(--sunnova-yellow);
}

h3, h4, h5, h6 {
  color: var(--sunnova-dark-orange);
}

[data-md-color-scheme="slate"] h3,
[data-md-color-scheme="slate"] h4,
[data-md-color-scheme="slate"] h5,
[data-md-color-scheme="slate"] h6 {
  color: #E0E0E0;
}

/* Logo and branding */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  fill: white;
}

/* Header text styling - make header title and navigation white */
.md-header__title,
.md-header__title .md-header__ellipsis {
  color: white !important;
}

.md-tabs__link {
  color: white !important;
  opacity: 0.8;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  color: white !important;
  opacity: 1;
}

/* Header search styling */
.md-search__input {
  color: white;
}

.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Improve blockquotes */
blockquote {
  border-left: 4px solid var(--sunnova-orange);
  background-color: rgba(255, 130, 0, 0.05);
  padding: 1em;
  margin: 1em 0;
  border-radius: 4px;
}

[data-md-color-scheme="slate"] blockquote {
  background-color: rgba(255, 130, 0, 0.1);
}

/* Improve footer visibility */
.md-footer {
  background-color: var(--sunnova-deep-purple);
}

[data-md-color-scheme="slate"] .md-footer {
  background-color: #1A1A2E;
}

/* Fix admonitions contrast */
.admonition {
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 1.5em 0;
}

.admonition-title {
  font-weight: bold;
}

/* Improve code inline */
:not(pre) > code {
  background-color: #f0f0f0;
  color: #e83e8c;
  font-weight: 500;
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

[data-md-color-scheme="slate"] :not(pre) > code {
  background-color: #2d2d3a;
  color: #f08ca6;
}

/* Mermaid diagrams improvement */
.mermaid .node rect, 
.mermaid .node circle, 
.mermaid .node ellipse, 
.mermaid .node polygon {
  fill: #f5f5f5;
  stroke: var(--sunnova-deep-purple);
  stroke-width: 1.5px;
}

[data-md-color-scheme="slate"] .mermaid .node rect,
[data-md-color-scheme="slate"] .mermaid .node circle,
[data-md-color-scheme="slate"] .mermaid .node ellipse,
[data-md-color-scheme="slate"] .mermaid .node polygon {
  fill: #2A2A3A;
  stroke: var(--sunnova-orange);
}

.mermaid .edgePath .path {
  stroke: var(--sunnova-dark-orange);
  stroke-width: 1.5px;
}

/* Make keyboard focus visible for accessibility */
:focus {
  outline: 2px solid var(--sunnova-orange);
  outline-offset: 2px;
}