/* VANTAGE V2 · STEP 01 · 22 NOVEMBER 2026
 * One approved visual foundation; presentation only.
 * Scope: header, rail and initial overview. Leave specialist tools,
 * their artwork, behaviour, geometry and persistence unchanged.
 * The complete 21-tone palette lives HERE in the currently published
 * R4 stylesheet; no competing theme stylesheet or new renderer.
 */
#app {
  --v2-black-1:#101010;
  --v2-black-2:#202327;
  --v2-black-3:#343A40;
  --v2-black-4:#4D555E;
  --v2-black-5:#66707A;
  --v2-grey-1:#67727D;
  --v2-grey-2:#8D969F;
  --v2-grey-3:#AFB7BF;
  --v2-grey-4:#D0D6DC;
  --v2-grey-5:#E8EBEE;
  --v2-white-1:#FFFFFF;
  --v2-white-2:#FAFBFC;
  --v2-white-3:#F5F6F8;
  --v2-white-4:#EFF1F4;
  --v2-white-5:#E7EAEE;
  --v2-blue-1:#294C7D;
  --v2-blue-2:#4269A8;
  --v2-blue-3:#7E9DC5;
  --v2-blue-4:#B3C6DD;
  --v2-blue-5:#DCE5F1;
  --v2-blue-6:#EDF2F9;
  --v2-type-display:clamp(34px,2.55vw,42px);
  --v2-type-heading:clamp(24px,2vw,28px);
  --v2-type-body:17px;
  --v2-type-control:16px;
  --v2-type-label:15px;
  --v2-type-meta:14px;
}

/* Top bar: neutral surfaces; VANTAGE Blue denotes interaction, not decoration. */
#app>.header {
  background:var(--v2-white-1)!important;
  color:var(--v2-black-1)!important;
  border-bottom-color:var(--v2-grey-4)!important;
}
#app>.header .brandword { color:var(--v2-black-1)!important; }
#app>.header .branddesc { color:var(--v2-black-4)!important; }
#app>.header .header-search {
  background:var(--v2-white-3)!important;
  border-color:var(--v2-grey-4)!important;
  color:var(--v2-black-4)!important;
}
#app>.header #wp-weather-header {
  background:var(--v2-white-2)!important;
  border-color:var(--v2-grey-4)!important;
  color:var(--v2-black-3)!important;
}
#app>.header :is(.wp-weather-symbol,.wp-weather-refresh) {
  color:var(--v2-blue-2)!important;
}
#app>.header .wp-functions-button {
  background:var(--v2-black-1)!important;
  border-color:var(--v2-black-1)!important;
  color:var(--v2-white-1)!important;
}
#app>.header :is(button,a,input):focus-visible {
  outline-color:var(--v2-blue-2)!important;
}

/* Keep the accepted noir sculpted-icon rail, but remove ornamental gold
 * highlighting. Do not alter icon positioning, dimensions or scroll. */
#app>.body>#tool-rail.rail {
  background:var(--v2-black-1)!important;
  border-right-color:var(--v2-black-3)!important;
}
#app>.body>#tool-rail .rail-button:is(:hover,.active) {
  background:var(--v2-black-2)!important;
  border-color:var(--v2-blue-2)!important;
}
#app>.body>#tool-rail .rail-button.active::before {
  background:var(--v2-blue-2)!important;
}
#app>.body>#tool-rail .rail-button:focus-visible {
  outline:2px solid var(--v2-blue-3)!important;
  outline-offset:1px!important;
}

/* Initial insight overview only: the calendar, route planner, adoption
 * journey, expert analysis and all other instruments retain their baseline. */
#app .overview .surface {
  background:var(--v2-white-1)!important;
  border-color:var(--v2-grey-4)!important;
}
#app .overview .field-header h2 {
  color:var(--v2-black-1)!important;
  font-size:var(--v2-type-heading)!important;
  line-height:1.2!important;
}
#app .overview :is(.field-header .subtle,.signal-caption,.signal-item small) {
  color:var(--v2-black-4)!important;
  font-size:var(--v2-type-meta)!important;
  line-height:1.5!important;
}
#app .overview :is(.signal-item strong,.graph-key) {
  color:var(--v2-black-2)!important;
  font-size:var(--v2-type-label)!important;
  line-height:1.4!important;
}
#app .overview .signal-item:is(:hover,:focus-visible) {
  background:var(--v2-blue-6)!important;
}
#app .overview .signal-number {
  color:var(--v2-blue-1)!important;
  border-color:var(--v2-blue-4)!important;
}
#app .overview .signal-compare {
  color:var(--v2-blue-1)!important;
  background:var(--v2-blue-6)!important;
}
@media(max-width:700px) {
  /* Existing compact viewport geometry has priority over larger desktop type. */
  #app .overview .field-header h2 { font-size:24px!important; }
  #app .overview :is(.field-header .subtle,.signal-caption,.signal-item small) {
    font-size:13px!important;
  }
  #app .overview :is(.signal-item strong,.graph-key) {
    font-size:14px!important;
  }
}

/* Actual QA100 morning dashboard uses .vnb-metric, not the older .overview.
 * Constrain these refinements to the dashboard presence; no specialist tool CSS. */
#app #workspace:has(.vnb-metric) {
  background-color:var(--v2-white-3)!important;
}
#app #workspace:has(.vnb-metric) h1 {
  color:var(--v2-black-2)!important;
}
#app #workspace:has(.vnb-metric) h1 :is(span,em,i) {
  color:var(--v2-blue-2)!important;
}
#app #workspace:has(.vnb-metric) .vnb-metric {
  background:var(--v2-white-1)!important;
  border-color:var(--v2-grey-4)!important;
}
#app #workspace:has(.vnb-metric) .vnb-metric::before,
#app #workspace:has(.vnb-metric) .vnb-metric::after {
  content:none!important;display:none!important;
}
#app #workspace:has(.vnb-metric) .vnb-metric strong {
  color:var(--v2-black-1)!important;
}
#app #workspace:has(.vnb-metric) :is(button,a):focus-visible {
  outline:2px solid var(--v2-blue-2)!important;
  outline-offset:2px!important;
}
