/*
  AV LÜ™ Authority Map header treatment v1.0.0
  Route-only visual layer. Authority content and behavior remain untouched.
*/

html[data-theme="dark"] body.route-authority-map .v13-header {
  position: relative;
  z-index: 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(121, 164, 228, .24) !important;
  background:
    linear-gradient(90deg, rgba(3, 9, 19, .98), rgba(6, 18, 36, .94) 62%, rgba(3, 9, 19, .98)) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] body.route-authority-map .v13-header::after {
  position: absolute;
  right: 5%;
  bottom: 0;
  left: 5%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(89, 153, 255, .5), transparent);
  box-shadow: 0 0 18px rgba(53, 126, 255, .28);
  pointer-events: none;
}

html[data-theme="dark"] body.route-authority-map .v13-header__inner {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] body.route-authority-map .v13-brand,
html[data-theme="dark"] body.route-authority-map .v13-nav a,
html[data-theme="dark"] body.route-authority-map .v13-login {
  color: #f3f7ff !important;
}

html[data-theme="dark"] body.route-authority-map .v13-brand {
  letter-spacing: .18em;
  text-shadow: 0 0 18px rgba(114, 169, 255, .22);
}

html[data-theme="dark"] body.route-authority-map .v13-nav a {
  opacity: .78;
}

html[data-theme="dark"] body.route-authority-map .v13-nav a[aria-current="page"] {
  color: #fff !important;
  background: rgba(54, 112, 207, .2) !important;
  box-shadow: inset 0 -2px 0 #5d9bff;
  opacity: 1;
}

html[data-theme="dark"] body.route-authority-map .v13-nav a:hover,
html[data-theme="dark"] body.route-authority-map .v13-nav a:focus-visible {
  color: #fff !important;
  background: rgba(65, 127, 226, .18) !important;
  opacity: 1;
}

html[data-theme="dark"] body.route-authority-map .v13-login:hover,
html[data-theme="dark"] body.route-authority-map .v13-login:focus-visible {
  color: #8bb9ff !important;
}

html[data-theme="dark"] body.route-authority-map .v13-header .v13-btn--primary {
  color: #f8fbff !important;
  border-color: #5f9dff !important;
  background: linear-gradient(135deg, #2669da, #3d8bff) !important;
  box-shadow: 0 9px 25px rgba(29, 102, 224, .28);
}

html[data-theme="dark"] body.route-authority-map .v13-header .v13-btn--primary:hover,
html[data-theme="dark"] body.route-authority-map .v13-header .v13-btn--primary:focus-visible {
  border-color: #a1c9ff !important;
  background: linear-gradient(135deg, #367bee, #65a7ff) !important;
  box-shadow: 0 12px 29px rgba(46, 128, 255, .38);
}

html[data-theme="dark"] body.route-authority-map .v13-menu {
  color: #f3f7ff !important;
  border-color: rgba(124, 173, 242, .5) !important;
  background: rgba(12, 29, 52, .92) !important;
}

html[data-theme="dark"] body.route-authority-map .v13-menu:hover,
html[data-theme="dark"] body.route-authority-map .v13-menu:focus-visible {
  color: #fff !important;
  border-color: #7fb5ff !important;
  background: rgba(38, 80, 143, .72) !important;
}

html[data-theme="dark"] body.route-authority-map .v13-header :is(a, button):focus-visible {
  outline: 2px solid #8dbdff;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  html[data-theme="dark"] body.route-authority-map .v13-nav {
    border-color: rgba(121, 164, 228, .3) !important;
    background: #071426 !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .32);
  }

  html[data-theme="dark"] body.route-authority-map .v13-nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 #5d9bff;
  }
}