.red {
  color:red;
}
.blue {
  color:blue;
}
.green {
  color:green;
}
.gray {
  color:gray;
}

/* Brand primary: override Material blue palette with #FF5125 */
:root {
  --oe-brand-primary: #FF5125;
  /* Same inset as Material .md-search__input: rgba(0,0,0,.26) on #FF5125 */
  --oe-header-inset: #BC3C1B;
}

[data-md-color-primary=blue] .md-typeset a,
[data-md-color-primary=blue] .md-nav__link--active,
[data-md-color-primary=blue] .md-nav__link:active {
  color: var(--oe-brand-primary);
}

[data-md-color-primary=blue] .md-header,
[data-md-color-primary=blue] .md-hero,
button[data-md-color-primary=blue] {
  background-color: var(--oe-brand-primary);
}

@media only screen and (max-width: 76.1875em) {
  html [data-md-color-primary=blue] .md-nav--primary .md-nav__title--site {
    background-color: var(--oe-brand-primary);
  }
}

@media only screen and (min-width: 76.25em) {
  [data-md-color-primary=blue] .md-tabs {
    background-color: var(--oe-brand-primary);
  }
}

[data-md-color-accent=light-blue] .md-typeset a:active,
[data-md-color-accent=light-blue] .md-typeset a:hover,
[data-md-color-accent=light-blue] .md-nav__link:focus,
[data-md-color-accent=light-blue] .md-nav__link:hover,
[data-md-color-accent=light-blue] .md-typeset .footnote li:hover .footnote-backref:hover,
[data-md-color-accent=light-blue] .md-typeset .footnote li:target .footnote-backref,
[data-md-color-accent=light-blue] .md-typeset .md-clipboard:active:before,
[data-md-color-accent=light-blue] .md-typeset .md-clipboard:hover:before,
[data-md-color-accent=light-blue] .md-typeset [id] .headerlink:focus,
[data-md-color-accent=light-blue] .md-typeset [id]:hover .headerlink:hover,
[data-md-color-accent=light-blue] .md-typeset [id]:target .headerlink {
  color: var(--oe-brand-primary);
}

[data-md-color-accent=light-blue] .md-typeset .codehilite pre::-webkit-scrollbar-thumb:hover,
[data-md-color-accent=light-blue] .md-typeset pre code::-webkit-scrollbar-thumb:hover,
[data-md-color-accent=light-blue] .md-search__scrollwrap::-webkit-scrollbar-thumb:hover,
[data-md-color-accent=light-blue] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover,
[data-md-color-accent=light-blue] .md-source-file:hover:before,
button[data-md-color-accent=light-blue] {
  background-color: var(--oe-brand-primary);
}

[data-md-color-accent=light-blue] .md-search-result__link:hover,
[data-md-color-accent=light-blue] .md-search-result__link[data-md-state=active] {
  background-color: rgba(255, 81, 37, 0.1);
}

/* Top nav tabs: solid white text on brand header */
.md-tabs__link,
.md-tabs__link:hover,
.md-tabs__link--active,
.md-tabs__link:focus {
  color: #FFFFFF !important;
  opacity: 1;
}

/* Header logo plate: match Search box inset color on brand bar */
.md-header .md-header-nav__button.md-logo {
  background-color: var(--oe-header-inset) !important;
  border-radius: 0.1rem;
  padding: 0.15rem 0.4rem;
  margin: 0.3rem 0.5rem 0.3rem 0;
  box-sizing: border-box;
  width: auto !important;
  height: auto !important;
  position: relative;
  z-index: 1;
}

.md-header-nav__button.md-logo img {
  height: 22px;
  width: auto;
  max-height: 1.8rem;
  display: block;
}

/* Align logo / title / search / language / versions on one center line.
   Theme uses nested table for title ellipsis; vertical-align cannot center it. */
.md-header .md-flex.navheader {
  display: flex;
  align-items: center;
  height: 2.4rem;
}

.md-header .md-flex.navheader > .md-flex__cell {
  display: block;
  position: relative;
}

/* Theme sets shrink cells to width:0 (table trick); under flex that
   collapses logo/search and lets the title slide under the logo. */
.md-header .md-flex.navheader > .md-flex__cell--shrink {
  flex: 0 0 auto;
  width: auto;
}

.md-header .md-flex.navheader > .md-flex__cell--stretch {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  table-layout: auto;
}

.md-header .md-header-nav__title {
  display: block;
  height: 2.4rem;
  line-height: 2.4rem;
  position: relative;
  overflow: hidden;
}

.md-header .md-header-nav__topic {
  top: 0;
  line-height: 2.4rem;
}

.md-header .dropdownbutton {
  line-height: 2.4rem;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Language switcher (header dropdown, same pattern as version_dropdown) */
.language-dropdown {
  margin-left: 0.5rem;
  margin-right: 1rem; /* gap before Versions */
}

.language-dropdown .language-current {
  font-weight: 700;
  opacity: 0.85;
  pointer-events: none;
}
