/* Proposed identity v1. Opt-in local preview; no workflow, formula or permission changes. */
html[data-mf-theme="institutional"]{--brand-red:#e30613;--brand-ink:#111;--brand-white:#fff;--brand-paper:#f4f5f7;--brand-muted:#50545b;--brand-line:#d5d8dd;--brand-link:#b00510;--brand-focus:#111;--semantic-loss:#9d2330;--semantic-profit:#17633a;--semantic-warning:#795600;--font-body:Arial,Helvetica,sans-serif;--font-editorial:Georgia,'Times New Roman',serif;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--radius-control:3px;--radius-card:4px;--lf-paper:var(--brand-paper);--lf-white:#fff;--lf-ink:#111;--lf-muted:#50545b;--lf-gold:#50545b;--navy:#111;--paper:#f4f5f7;--ink:#111;--muted:#50545b;--rule:#d5d8dd;--mf-ink:#111;--mf-ivory:#fff}
html[data-mf-theme="institutional"] body{background:#f4f5f7;color:#111;--action-ruby:#b00510;--action-ruby-hover:#87040c;--action-ruby-light:#fff}
html[data-mf-theme="institutional"] :is(.mfx-head,.mfx-head .mfx-nav){background:#fff!important;border-color:#d5d8dd!important}
html[data-mf-theme="institutional"] .mfx-head :is(.mfx-nav a,.mfx-lang button,.mfx-burger){color:#111!important}
html[data-mf-theme="institutional"] .mfx-head .mfx-nav a:hover{color:#b00510!important;border-color:#b00510!important}
html[data-mf-theme="institutional"] :is(.per-primary,.client-access>summary,.mfx-head .mfx-cta){background:#e30613!important;color:#fff!important;border-color:#e30613!important}
html[data-mf-theme="institutional"] :is(.per-hero,.h3-gateway,.he-evidence,.h3-process,.h3-core){background:#f4f5f7!important;color:#111!important}
html[data-mf-theme="institutional"] :is(.per-hero,.h3-gateway,.he-evidence,.h3-process,.h3-core) :is(h1,h2,h3,strong){color:#111!important}
html[data-mf-theme="institutional"] :is(.per-hero,.h3-gateway,.he-evidence,.h3-process,.h3-core) :is(p,li){color:#50545b}
html[data-mf-theme="institutional"] :is(.per-decision,.h3-journey,.h3-core-card){background:#fff!important;border-color:#d5d8dd!important;color:#111!important;box-shadow:none!important}
html[data-mf-theme="institutional"] :is(.per-kicker,.h3-eyebrow,.pg-eyebrow,.eyebrow){color:#50545b}
html[data-mf-theme="institutional"] :is(.he-compact-footer,.he-footer){background:#111!important;color:#fff!important;border-color:#d5d8dd!important}
html[data-mf-theme="institutional"] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #111;outline-offset:3px}
/* No global red/green replacement: financial status colours retain semantic meaning. */
/* Independent review: preserve photo labels, real footer selector and dual focus ring. */
html[data-mf-theme="institutional"] :is(.h3-hero,.h3-map-panel,.h3-city-card,.h3-closing) :is(.h3-eyebrow,.eyebrow){color:#fff!important;text-shadow:0 1px 4px #111}
html[data-mf-theme="institutional"] .h3-footer{background:#111!important;color:#fff!important;border-color:#d5d8dd!important}
html[data-mf-theme="institutional"] .h3-footer :is(a,p,summary,strong){color:#fff!important}
html[data-mf-theme="institutional"] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #fff!important;outline-offset:2px!important;box-shadow:0 0 0 5px #111!important}
/* Existing report pages retain their content, provenance and synthetic labels. */
html[data-mf-theme="institutional"] .sr{background:#fff;color:#111}
html[data-mf-theme="institutional"] .sr :is(h1,h2,h3,summary){color:#111!important}
html[data-mf-theme="institutional"] .sr p{color:#50545b}
html[data-mf-theme="institutional"] .sr :is(details,.sr-table){border-color:#d5d8dd}
html[data-mf-theme="institutional"] .sr th{background:#f4f5f7;color:#111}
html[data-mf-theme="institutional"] .sr a{color:#b00510}
/* Expanded footer panels are light surfaces, distinct from the dark footer bar. */
html[data-mf-theme="institutional"] .h3-footer .hf-menu-content{background:#fff!important;color:#111!important;border-color:#d5d8dd!important}
html[data-mf-theme="institutional"] .h3-footer .hf-menu-content :is(p,summary,strong,li,h2,h3,h4){color:#111!important}
html[data-mf-theme="institutional"] .h3-footer .hf-menu-content a{color:#b00510!important}
/* Expanded footer content must shrink within a narrow flex row. */
html[data-mf-theme="institutional"] .h3-footer .hf-groups>.hf-menu{min-width:0;max-width:100%}
html[data-mf-theme="institutional"] .h3-footer .hf-menu-content{min-width:0;max-width:100%;overflow-wrap:anywhere}
html[data-mf-theme="institutional"] .h3-footer .hf-menu-content :is(details,.h3-wrap){min-width:0;max-width:100%;width:auto;box-sizing:border-box}
html[data-mf-theme="institutional"] .h3-footer .hf-menu-content>.h3-text-link{max-width:100%;margin-right:0;white-space:normal}

/* User-approved navigation button colour, 27 Oct 2026. */
html body[data-mf-route] a[class]:is(.btn,.h3-btn,.mfx-cta,.per-primary,.per-secondary){background:#e30613!important;border-color:#e30613!important;color:#fff!important}
html body[data-mf-route] a[class]:is(.btn,.h3-btn,.mfx-cta,.per-primary,.per-secondary):hover{background:#a8000f!important;border-color:#a8000f!important;color:#fff!important}
html body[data-mf-route] a[class]:is(.btn,.h3-btn,.mfx-cta,.per-primary,.per-secondary):focus-visible{outline:3px solid #aa8a42!important;outline-offset:3px}
html body[data-mf-route] a[class]:is(.btn,.h3-btn,.mfx-cta,.per-primary,.per-secondary) :is(span,strong,small){color:inherit!important}

/* All actionable controls: user-approved red identity, 27 Oct 2026. */
html body button:not(:disabled):not(.fl-node),
html body input:is([type="submit"],[type="button"]):not(:disabled),
html body a[class]:is(.v14-button,.course-button,.mf-academy-primary,.secondary){background:#e30613!important;border-color:#e30613!important;color:#fff!important}
html body button:not(:disabled):not(.fl-node):hover,
html body input:is([type="submit"],[type="button"]):not(:disabled):hover,
html body a[class]:is(.v14-button,.course-button,.mf-academy-primary,.secondary):hover{background:#a8000f!important;border-color:#a8000f!important;color:#fff!important}
html body button:not(:disabled):focus-visible{outline:3px solid #aa8a42!important;outline-offset:3px}
html body button[aria-pressed="true"],html body button[aria-selected="true"]{box-shadow:inset 0 0 0 2px #fff!important}
