/* Venture Investment Group 1.10.8 — accessible foregrounds on contrasting surfaces.
   Scoped to semantic components rather than generic tag selectors to avoid the historical
   light-card `span` rule overriding dark image badges. Loaded after older theme layers. */
:root {
  --vig-contrast-navy: #08192e;
  --vig-contrast-ink: #10243b;
  --vig-contrast-slate: #42566b;
  --vig-contrast-on-dark: #e3ebf4;
  --vig-contrast-white: #ffffff;
}

/* RESEARCH / YEAR overlays: these belong to the dark *image badge*, not the white card.
   The older white-card rules applied slate text and -webkit-text-fill-color to all spans. */
html body .research-card.vig-research-card .research-card-image .vig-picture-ordinal,
html body .research-card .research-card-image > span.vig-picture-ordinal,
html body .vig-research-card .vig-research-card-picture .vig-picture-ordinal {
  background: var(--vig-contrast-navy) !important;
  color: var(--vig-contrast-white) !important;
  -webkit-text-fill-color: var(--vig-contrast-white) !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 1 !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
  color-scheme: dark;
}

/* White research cards remain light: all headings, metadata and body copy are legible. */
html body .research-card .research-card-body,
html body .vig-research-card .research-card-body {background: #ffffff; color: var(--vig-contrast-ink); color-scheme: light;}
html body .research-card .research-card-body :is(h2,h3,strong),
html body .vig-research-card .research-card-body :is(h2,h3,strong) {
  color: var(--vig-contrast-ink) !important;
  -webkit-text-fill-color: var(--vig-contrast-ink) !important;
}
html body .research-card .research-card-body :is(.card-meta,.card-foot,.card-foot span),
html body .vig-research-card .research-card-body :is(.card-meta,.card-foot,.card-foot span) {
  color: #42566b !important;
  -webkit-text-fill-color: #42566b !important;
  opacity: 1 !important;
}

/* Only known navy panels receive light text. Do not recolor their nested white cards. */
html body :is(.vig-workflow-band,.vig-method-panel,.operator-section,.vig-feature-canvas-label)
  :is(.eyebrow,.vig-mini-label,.panel-kicker,.vig-method-number,.vig-workflow-step-label) {
  color: #cbd8e6 !important;
  -webkit-text-fill-color: #cbd8e6 !important;
  opacity: 1 !important;
}
html body :is(.vig-workflow-band,.vig-method-panel,.operator-section,.vig-feature-canvas-label)
  :is(h1,h2,h3,.vig-workflow-title,.vig-method-title) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}
html body :is(.vig-workflow-band,.vig-method-panel,.operator-section,.vig-feature-canvas-label)
  :is(.vig-method-intro,.vig-group-scope,.vig-group-positioning-copy,.vig-workflow-description) {
  color: var(--vig-contrast-on-dark) !important;
  -webkit-text-fill-color: var(--vig-contrast-on-dark) !important;
  opacity: 1 !important;
}
/* Other dark-background labels, including the client gateway and dark public feature. */
html body .cap-login-shell .cap-login-brand :is(.cap-kicker,.cap-security-note),
html body .cap-public-section.cap-dark :is(.cap-kicker,.panel-kicker) {
  color: #cbd8e6 !important;
  -webkit-text-fill-color: #cbd8e6 !important;
}
/* Preserve white action ink on navy buttons and input contrast without styling all anchors. */
html body :is(.vig-contact-submit,.cap-portal-main .cap-btn-dark,.cap-portal-main .cap-form-actions .cap-btn) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
/* Mobile: overlays should not be cropped or illegible on narrow cards. */
@media(max-width:720px) {
  html body .vig-research-card .research-card-image .vig-picture-ordinal {
    inset-inline-start: 12px;
    bottom: 12px;
    padding: 9px 11px;
    font-size: 10px;
  }
}
