/*
  AV LÜ™ Evidence dark route treatment v2.4.3
  Scoped to the evidence page only.
  © 2026 AVLU. All rights reserved.
*/

html[data-theme="dark"] body.route-evidence {
  --evidence-ink: #f5f8ff;
  --evidence-muted: #aab9d5;
  --evidence-blue: #2f83ff;
  --evidence-blue-bright: #6ea7ff;
  --evidence-navy: #061326;
  --evidence-navy-deep: #030a17;
  color: var(--evidence-ink);
  background: var(--evidence-navy-deep) !important;
}

html[data-theme="dark"]:has(body.route-evidence) {
  background: var(--evidence-navy-deep) !important;
}

html[data-theme="dark"] body.route-evidence main {
  background: transparent !important;
}

html[data-theme="dark"] body.route-evidence .v13-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(125, 166, 232, 0.22);
  background: rgba(3, 10, 23, 0.88) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.17);
  color: var(--evidence-ink);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] body.route-evidence .v13-header::after {
  background: repeating-linear-gradient(90deg, rgba(110, 167, 255, 0.7) 0 22px, transparent 22px 28px);
  opacity: 0.2;
}

html[data-theme="dark"] body.route-evidence .v13-brand {
  color: #f4f7ff;
  text-shadow: 0 0 20px rgba(90, 148, 255, 0.28);
}

html[data-theme="dark"] body.route-evidence .v13-brand::before {
  background: var(--evidence-blue);
  box-shadow: 0 0 12px rgba(47, 131, 255, 0.8);
}

html[data-theme="dark"] body.route-evidence .v13-nav a,
html[data-theme="dark"] body.route-evidence .v13-login {
  color: rgba(221, 231, 250, 0.74);
}

html[data-theme="dark"] body.route-evidence .v13-nav a:hover,
html[data-theme="dark"] body.route-evidence .v13-nav a:focus-visible,
html[data-theme="dark"] body.route-evidence .v13-nav a[aria-current="page"],
html[data-theme="dark"] body.route-evidence .v13-login:hover {
  color: var(--evidence-blue-bright);
  background: rgba(20, 47, 86, 0.68);
}

html[data-theme="dark"] body.route-evidence .v13-nav a::after {
  background: var(--evidence-blue);
  box-shadow: 0 0 10px rgba(47, 131, 255, 0.72);
}

html[data-theme="dark"] body.route-evidence .v13-menu {
  border-color: rgba(126, 169, 237, 0.5);
  background: rgba(7, 23, 47, 0.74);
  color: var(--evidence-ink);
}

html[data-theme="dark"] body.route-evidence .v13-page-hero {
  border-bottom-color: rgba(125, 166, 232, 0.2);
}

html[data-theme="dark"] body.route-evidence .v13-page-hero h1 {
  color: #f7f9ff;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] body.route-evidence .v13-page-hero__lead,
html[data-theme="dark"] body.route-evidence .v13-evidence__note {
  color: var(--evidence-muted);
}

html[data-theme="dark"] body.route-evidence .v13-btn--primary {
  border-color: var(--evidence-blue);
  background: var(--evidence-blue);
  box-shadow: 0 0 0 1px rgba(110, 167, 255, 0.2), 0 12px 32px rgba(10, 67, 158, 0.34);
}

html[data-theme="dark"] body.route-evidence .v13-btn--primary:hover,
html[data-theme="dark"] body.route-evidence .v13-btn--primary:focus-visible {
  border-color: var(--evidence-blue-bright);
  background: var(--evidence-blue-bright);
  box-shadow: 0 0 0 1px rgba(110, 167, 255, 0.35), 0 14px 36px rgba(10, 67, 158, 0.46);
}

html[data-theme="dark"] body.route-evidence .v13-btn--secondary {
  border-color: rgba(92, 159, 255, 0.55);
  background: rgba(7, 25, 53, 0.68);
  color: #d9e8ff;
}

html[data-theme="dark"] body.route-evidence .v13-btn--secondary:hover,
html[data-theme="dark"] body.route-evidence .v13-btn--secondary:focus-visible {
  border-color: var(--evidence-blue-bright);
  background: rgba(20, 57, 112, 0.78);
  color: #fff;
}

/*
  Rebuilt Evidence scorecard shell.
  The component uses dedicated route markup so legacy light scorecard
  selectors cannot reach any of its surfaces.
*/
html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(92, 159, 255, 0.62);
  border-radius: 4px;
  color: var(--evidence-ink);
  background: rgba(5, 18, 38, 0.78);
  box-shadow:
    0 0 0 1px rgba(47, 131, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(26, 91, 184, 0.14);
  backdrop-filter: blur(16px) saturate(125%);
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(110, 167, 255, 0.9) 22%, rgba(47, 131, 255, 0.42) 78%, transparent);
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(111, 164, 243, 0.24);
  color: #dce9ff;
  background: linear-gradient(115deg, rgba(19, 57, 112, 0.74), rgba(4, 20, 45, 0.72));
  font-size: 0.78rem;
  font-weight: 850;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__head > span,
html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__head > b {
  color: #dce9ff;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__head > b {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(110, 167, 255, 0.48);
  border-radius: 999px;
  background: rgba(47, 131, 255, 0.22);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__total {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px 18px 20px;
  border-bottom: 1px solid rgba(119, 158, 216, 0.22);
  background: linear-gradient(145deg, rgba(17, 55, 106, 0.78), rgba(4, 17, 37, 0.82));
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__total > strong {
  margin: 0;
  color: #f5f8ff;
  font-size: 4.8rem;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-shadow: 0 0 24px rgba(110, 167, 255, 0.28);
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__total > span {
  color: #c8d8ef;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(119, 158, 216, 0.22);
  background: rgba(3, 11, 26, 0.42);
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__metric {
  min-height: 92px;
  padding: 17px 18px;
  border-right: 1px solid rgba(119, 158, 216, 0.2);
  border-bottom: 1px solid rgba(119, 158, 216, 0.2);
  background: rgba(10, 31, 61, 0.36);
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__metric:nth-child(2n) {
  border-right: 0;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__metric:nth-last-child(-n + 2) {
  border-bottom: 0;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__metric > strong {
  display: block;
  margin: 0 0 5px;
  color: #f5f8ff;
  font-size: 1.55rem;
  line-height: 1;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__metric > span {
  display: block;
  color: #aab9d5;
  font-size: 0.75rem;
  line-height: 1.35;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__boundary {
  margin: 0;
  padding: 16px 18px 10px;
  color: #aab9d5;
  background: rgba(4, 16, 34, 0.34);
  font-size: 0.8rem;
  line-height: 1.5;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__boundary > b {
  color: #e5efff;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__link {
  display: block;
  padding: 4px 18px 17px;
  border-top: 1px solid rgba(119, 158, 216, 0.2);
  color: var(--evidence-blue-bright);
  background: rgba(4, 16, 34, 0.34);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__link:hover,
html[data-theme="dark"] body.route-evidence .evidence-scorecard-shell__link:focus-visible {
  color: #b8d4ff;
  background: rgba(13, 43, 86, 0.58);
}

html[data-theme="dark"] body.route-evidence .v13-evidence,
html[data-theme="dark"] body.route-evidence .v13-section,
html[data-theme="dark"] body.route-evidence .v13-section--alt {
  color: var(--evidence-ink);
  background: rgba(3, 10, 23, 0.76) !important;
}

html[data-theme="dark"] body.route-evidence .v13-evidence__item,
html[data-theme="dark"] body.route-evidence .v13-process-card {
  border-color: rgba(92, 159, 255, 0.38) !important;
  color: var(--evidence-ink);
  background: rgba(7, 25, 53, 0.68) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body.route-evidence .v13-evidence__item:hover,
html[data-theme="dark"] body.route-evidence .v13-evidence__item:focus-visible,
html[data-theme="dark"] body.route-evidence .v13-process-card:hover {
  border-color: rgba(110, 167, 255, 0.72) !important;
  background: rgba(13, 43, 86, 0.76) !important;
}

html[data-theme="dark"] body.route-evidence .v13-evidence__item strong,
html[data-theme="dark"] body.route-evidence .v13-process-card h3 {
  color: #f5f8ff !important;
}

html[data-theme="dark"] body.route-evidence .v13-evidence__item span,
html[data-theme="dark"] body.route-evidence .v13-process-card p {
  color: var(--evidence-muted) !important;
}