/* VAS Unified Contrast v7 - 2026-11-10.
   This is the one authoritative appearance override for every headless page.
   Older patch stylesheets remain as archived files but are no longer linked. */
:root,html[data-vas-mode="light"] {
 --v7-bg:#f0f5f8;--v7-surface:#ffffff;--v7-text:#142f44;
 --v7-muted:#3d586c;--v7-border:#9eb4c3;--v7-link:var(--vas-accent,#0d587c);
 --v7-action:var(--vas-accent,#145b7e);--v7-action-text:#ffffff;
 --v7-input:#ffffff;--v7-input-text:#173449;
 --v7-note:#fff1d0;--v7-note-text:#4a3510;
 --v7-header:#102c40;--v7-header-text:#ffffff;
 color-scheme:light;
}
html[data-vas-mode="dark"] {
 --v7-bg:#0d1d2b;--v7-surface:#1d374a;--v7-text:#f6fbff;
 --v7-muted:#d2e4f0;--v7-border:#8cacc0;--v7-link:#abe1ff;
 --v7-action:var(--vas-accent,#267aa3);--v7-action-text:#ffffff;
 --v7-input:#102a3c;--v7-input-text:#ffffff;
 --v7-note:#4a3920;--v7-note-text:#fff6d9;
 --v7-header:#071826;--v7-header-text:#ffffff;
 color-scheme:dark;
}
html[data-vas-mode="contrast"] {
 --v7-bg:#000;--v7-surface:#000;--v7-text:#fff;
 --v7-muted:#fff;--v7-border:#fff;--v7-link:#fff061;
 --v7-action:#000;--v7-action-text:#fff061;
 --v7-input:#000;--v7-input-text:#fff;
 --v7-note:#000;--v7-note-text:#fff;
 --v7-header:#000;--v7-header-text:#fff;
 color-scheme:dark;
}
@media(prefers-color-scheme:dark) {
 html:not([data-vas-mode]) {
  --v7-bg:#0d1d2b;--v7-surface:#1d374a;--v7-text:#f6fbff;
  --v7-muted:#d2e4f0;--v7-border:#8cacc0;--v7-link:#abe1ff;
  --v7-action:#267aa3;--v7-action-text:#fff;
  --v7-input:#102a3c;--v7-input-text:#fff;
  --v7-note:#4a3920;--v7-note-text:#fff6d9;
  --v7-header:#071826;--v7-header-text:#fff;color-scheme:dark;
 }
}
html body {
 background-color:var(--v7-bg)!important;
 color:var(--v7-text)!important;
}
html body main,html body .vas-ui-bar {color:var(--v7-text)!important;}
html body main :is(
 .panel,.card,.stat,.caseCard,.ownerCaseCard,.choice,.formpanel,.formgrid,
 .caseDetail,.tableScroll,.tablewrap,.table,.case,.workspace-panel,
 .vas-admin-toolbox,.vas-admin-tools-group,.vas-portal-tile,.vas-portal-primary,
 .service-feature,.option,.result,.record,.info-box,fieldset,details
) {
 background:var(--v7-surface)!important;
 color:var(--v7-text)!important;
 border-color:var(--v7-border)!important;
}
html body main :is(
 .panel,.card,.stat,.caseCard,.ownerCaseCard,.choice,.formpanel,.formgrid,
 .caseDetail,.tableScroll,.tablewrap,.table,.case,.workspace-panel,
 .vas-admin-toolbox,.vas-admin-tools-group,.vas-portal-tile,.vas-portal-primary,
 .service-feature,.option,.result,.record,.info-box,fieldset,details
) :is(h1,h2,h3,h4,h5,h6,p,span,strong,small,em,label,legend,li,dt,dd,th,td,summary) {
 color:var(--v7-text)!important;
 -webkit-text-fill-color:var(--v7-text)!important;
}
html body main :is(h1,h2,h3,h4,h5,h6,legend) {
 color:var(--v7-text)!important;
 -webkit-text-fill-color:var(--v7-text)!important;
}
html body main :is(.muted,.small,.note,.intro,.lead,.eyebrow,.description) {
 color:var(--v7-muted)!important;
 -webkit-text-fill-color:var(--v7-muted)!important;
}
html body :is(.vas-ui-preferences,.vas-ui-preview,.vas-more-options,.vas-ui-controls) {
 background:var(--v7-surface)!important;
 color:var(--v7-text)!important;
 border-color:var(--v7-border)!important;
}
html body :is(.vas-ui-preferences,.vas-ui-preview,.vas-more-options,.vas-ui-controls)
 :is(h2,h3,p,strong,span,label,summary) {
 color:var(--v7-text)!important;
 -webkit-text-fill-color:var(--v7-text)!important;
}
html body main :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
html body :is(.vas-ui-preferences,.vas-ui-controls) select {
 background:var(--v7-input)!important;
 color:var(--v7-input-text)!important;
 -webkit-text-fill-color:var(--v7-input-text)!important;
 border:2px solid var(--v7-border)!important;
 opacity:1!important;
}
html body :is(select option,select optgroup) {
 background:var(--v7-input)!important;
 color:var(--v7-input-text)!important;
 -webkit-text-fill-color:var(--v7-input-text)!important;
}
html body :is(input,select,textarea)::placeholder {
 color:var(--v7-muted)!important;
 -webkit-text-fill-color:var(--v7-muted)!important;
 opacity:1!important;
}
html body main :is(a:not(.btn):not(.vas-portal-main-cta):not(.vas-gate-button),a:visited:not(.btn):not(.vas-portal-main-cta):not(.vas-gate-button)) {
 color:var(--v7-link)!important;
 -webkit-text-fill-color:var(--v7-link)!important;
}
html body main :is(button:not(.secondary):not(.vas-ui-choice),.btn:not(.secondary),.action,.vas-gate-button,.vas-portal-main-cta,.vas-portal-entry) {
 background:var(--v7-action)!important;
 color:var(--v7-action-text)!important;
 -webkit-text-fill-color:var(--v7-action-text)!important;
 border-color:var(--v7-border)!important;
}
html body main :is(button:not(.secondary):not(.vas-ui-choice),.btn:not(.secondary),.action,.vas-gate-button,.vas-portal-main-cta,.vas-portal-entry)
 :is(span,strong,small,em,svg) {
 color:var(--v7-action-text)!important;
 -webkit-text-fill-color:var(--v7-action-text)!important;
}
html body main :is(.btn.secondary,button.secondary) {
 background:var(--v7-surface)!important;
 color:var(--v7-text)!important;
 -webkit-text-fill-color:var(--v7-text)!important;
 border:1px solid var(--v7-border)!important;
}
html body main :is(.btn.secondary,button.secondary) :is(span,strong,small) {
 color:var(--v7-text)!important;
 -webkit-text-fill-color:var(--v7-text)!important;
}
html body main :is(.notice,.alert,.warn,.warning,.note-box) {
 background:var(--v7-note)!important;
 color:var(--v7-note-text)!important;
 -webkit-text-fill-color:var(--v7-note-text)!important;
 border-color:var(--v7-border)!important;
}
html body main :is(.notice,.alert,.warn,.warning,.note-box)
 :is(h1,h2,h3,h4,p,strong,span,small,li,label,div) {
 color:var(--v7-note-text)!important;
 -webkit-text-fill-color:var(--v7-note-text)!important;
}
html body main :is(.notice,.alert,.warn,.warning,.note-box) a {
 color:var(--v7-link)!important;-webkit-text-fill-color:var(--v7-link)!important;
}
html body main :is(table,thead,tbody,tr,th,td) {border-color:var(--v7-border)!important;}
html body main thead th {
 background:var(--v7-surface)!important;
 color:var(--v7-text)!important;
 -webkit-text-fill-color:var(--v7-text)!important;
}
html body main :is(.badge,.tag,.pill) {
 background:var(--v7-surface)!important;
 color:var(--v7-text)!important;
 -webkit-text-fill-color:var(--v7-text)!important;
 border:1px solid var(--v7-border)!important;
}
html body header {
 background:var(--v7-header)!important;
 color:var(--v7-header-text)!important;
}
html body header :is(h1,h2,h3,p,span,strong,a),
html body header nav a {
 color:var(--v7-header-text)!important;
 -webkit-text-fill-color:var(--v7-header-text)!important;
}
html body :is(a,button,input,textarea,select,summary):focus-visible {
 outline:3px solid #f1b84c!important;outline-offset:3px!important;
}
html body [hidden] {display:none!important;}
@media(max-width:700px) {
 html body main :is(.panel,.card,.stat,.caseCard,.ownerCaseCard,.vas-portal-tile) {
  min-width:0;overflow-wrap:anywhere;
 }
}

/* 2026-11-12: the site draws its own light and dark themes; tell browsers not to repaint it (Samsung Internet / Chrome auto-dark caused white-on-white). */
html:not([data-vas-mode]){color-scheme:light dark}
html[data-vas-mode="light"]{color-scheme:only light!important}
html[data-vas-mode="dark"],html[data-vas-mode="contrast"]{color-scheme:only dark!important}

/* 2026-11-12: large-monitor and hero fixes. Hero text stays light on the dark hero; labels don't stretch. */
html body main .hero :is(h1,h2,h3){color:#fff!important;-webkit-text-fill-color:#fff!important}
html body main .hero p{color:#d7e4e9!important;-webkit-text-fill-color:#d7e4e9!important}
html body main .hero :is(.eyebrow,.hero-stamp){color:#f1d79c!important;-webkit-text-fill-color:#f1d79c!important}
html body main .hero .actions{max-width:660px}
html body main .tag{display:inline-block;width:auto!important;padding:3px 12px}