/* Blue → black header chrome — brand blue on the left, black on the right. */
:root,
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #041530;
  --md-primary-fg-color--light: #0b3d91;
  --md-primary-fg-color--dark: #000000;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-accent-fg-color: #3b82f6;

  --er-header-bg: #041530;
  --er-banner-gradient: linear-gradient(90deg, #0b3d91 0%, #041530 42%, #000000 100%);
  --er-banner: url("../assets/header-banner.svg");
  --er-tabs-h: 2.4rem;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Shared blue→black banner chrome (header, desktop tabs, mobile drawer). */
.md-header,
.md-tabs,
.md-nav--primary .md-nav__title[for="__drawer"] {
  background-color: var(--er-header-bg) !important;
  background-image: var(--er-banner-gradient), var(--er-banner) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  box-shadow: none !important;
}

.md-header {
  position: sticky;
  top: 0;
  z-index: 4;
}

.md-header::before {
  display: none !important;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg,
.md-nav__button.md-logo img,
.md-nav__button.md-logo svg {
  height: 2rem;
  width: auto;
}

/* Mobile drawer: logo/title band must read as the same blue→black chrome. */
@media screen and (max-width: 76.234375em) {
  .md-nav--primary .md-nav__title[for="__drawer"] {
    color: var(--md-primary-bg-color) !important;
    /* Beat Material `background` shorthand resets that drop background-image. */
    background: var(--er-banner-gradient) var(--er-header-bg) !important;
  }
}

/* Labeled product links next to theme toggle (docs / website). */
.er-header-links {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.15rem;
}

.er-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: 0.25rem;
  color: var(--md-primary-bg-color);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: lowercase;
  opacity: 0.92;
  transition: background 140ms ease, opacity 140ms ease;
}

.er-header-link:hover,
.er-header-link:focus {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.er-header-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.er-header-link__icon {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
}

.er-header-link__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.er-header-link__label {
  line-height: 1;
}

@media screen and (max-width: 76.234375em) {
  .er-header-link__label {
    display: none;
  }

  .er-header-link {
    width: 2.25rem;
    padding: 0;
    justify-content: center;
  }
}
