/* Museum of AI — v8.8.19.59. Scoped cross-page contrast repair.
   Origin: systematic audit of v8.8.19.58 templates. No changes to 3D rendering.
   The site's generic theme override made text dark even in templates with
   fixed dark surfaces; these pages explicitly restore coherent ink + surfaces. */
html[data-theme="light"] body.mtn59-dark-canvas {
  --ink:#f3f5f7!important;--muted:#c3cad1!important;
  --wall:#101419!important;--panel:#1b222b!important;
  --line:#66717d!important;--cobalt:#a8c9ff!important;
  --blue:#a8c9ff!important;--cobalt-soft:#273653!important;
  --soft:#27313d!important;--ochre:#f0c56a!important;
  color:#f3f5f7!important;
}
/* The page is visually dark by design and should remain legible even after
   visitors explicitly select the site's light appearance. */
html[data-theme="light"] body.mtn59-dark-canvas .room-site-header .museum-brand,
html[data-theme="light"] body.mtn59-dark-canvas .room-journey :is(strong,small) {color:#f3f5f7!important}
html[data-theme="light"] body.mtn59-dark-canvas .room-journey small{color:#c3cad1!important}
html[data-theme="light"] body.mtn59-dark-canvas .meta span{color:#f0c56a!important}
/* International collection's own dark curatorial panels retain light text. */
html[data-theme="light"] body.wc-body.mtn59-dark-canvas{color:var(--wc-text,#f0f1ed)!important}
/* Visit pages have a separate designed palette, do not override their images. */
html[data-theme="light"] body.mtn59-dark-canvas .mtn-resource-panel{
 background:#19232e!important;color:#f3f5f7!important;
}
/* AI Today: a translucent dark overlay caused blue links to meet only 2.3:1. */
body.mtn59-today .today-curatorial-note{background:var(--panel,#fbfbf8)!important;color:var(--ink,#172230)!important;border-color:var(--line,#c5ced8)!important}
body.mtn59-today .today-curatorial-note a{color:var(--blue,#2447a8)!important}
html[data-contrast="high"] body.mtn59-today .today-curatorial-note{background:#000!important;color:#fff!important;border-color:#fff!important}
/* Collection metadata: brown years on dark cards were below AA. */
html[data-theme="dark"] body.mtn59-collection .meta span,
html[data-contrast="high"] body.mtn59-collection .meta span{color:#ffe29a!important}
html[data-contrast="high"] body.mtn59-collection .mtn-lit-route-note{
 background:#000!important;color:#fff!important;border-color:#fff!important;
}
html[data-contrast="high"] body.mtn59-collection .mtn-lit-route-note a{color:#00e5ff!important}
/* High contrast + ordinary dark theme for the white cards in the speech/BCI pipeline. */
html[data-theme="dark"] body.mtn59-flow .xf-flow .st,
html[data-theme="dark"] body.mtn59-flow .xf-not,
html[data-contrast="high"] body.mtn59-flow .xf-flow .st,
html[data-contrast="high"] body.mtn59-flow .xf-not{
 background:#101820!important;color:#fff!important;border-color:#8b9aa8!important;
}
html[data-contrast="high"] body.mtn59-flow .xf-flow .st,
html[data-contrast="high"] body.mtn59-flow .xf-not{background:#000!important;border-color:#fff!important}
/* Exhibit chat action: white-on-pale-blue fails in dark and high-contrast themes. */
html[data-theme="dark"] body.mtn59-chat .exhibit-chat-form button,
html[data-contrast="high"] body.mtn59-chat .exhibit-chat-form button{
 background:#164f9c!important;color:#fff!important;border-color:#fff!important;
}
html[data-contrast="high"] body.mtn59-chat .exhibit-chat-form button{background:#000!important;color:#fff!important;border-color:#fff!important}
/* Light and dark appearance of the Evolution Dance documentary, matching surfaces and ink. */
html[data-theme="light"] body.mtn59-evolution {background:#f6f4ee!important;color:#253443!important;--ink:#253443!important;--panel:#fff!important;--muted:#526675!important}
html[data-theme="light"] body.mtn59-evolution .sheet{background:#fff!important;color:#253443!important;border-color:#d9e0df!important}
html[data-theme="light"] body.mtn59-evolution .curation{background:#eaf3f2!important}
html[data-theme="light"] body.mtn59-evolution .phase-description{background:#fff!important;color:#253443!important}
html[data-theme="light"] body.mtn59-evolution .phases button{background:#fff!important;color:#213b4a!important}
html[data-theme="light"] body.mtn59-evolution :is(.eyebrow,.note,.art figcaption){color:#526675!important}
html[data-theme="dark"] body.mtn59-evolution{background:#101d27!important;color:#e5ebeb!important;--ink:#e5ebeb!important;--panel:#1a303c!important;--muted:#b3c7ce!important}
html[data-theme="dark"] body.mtn59-evolution .sheet{background:#1a303c!important;color:#e5ebeb!important;border-color:#3d5460!important}
html[data-theme="dark"] body.mtn59-evolution .curation{background:#18353c!important}
html[data-theme="dark"] body.mtn59-evolution .phase-description{background:#213946!important;color:#e5ebeb!important}
html[data-theme="dark"] body.mtn59-evolution .phases button{background:#223b49!important;color:#fff!important}
html[data-theme="dark"] body.mtn59-evolution :is(.eyebrow,.note,.art figcaption){color:#b3c7ce!important}
html[data-contrast="high"] body.mtn59-evolution,
html[data-contrast="high"] body.mtn59-evolution :is(.sheet,.curation,.phase-description){background:#000!important;color:#fff!important;border-color:#fff!important}
/* A light-theme 404 needs a light background, even on devices preferring dark. */
html[data-theme="light"] body.mtn59-error{background:#f3efe7!important;color:#171717!important;--ink:#171717!important}
html[data-theme="dark"] body.mtn59-error{background:#171717!important;color:#f3efe7!important;--ink:#f3efe7!important}
html[data-contrast="high"] body.mtn59-error{background:#000!important;color:#fff!important;--ink:#fff!important}
/* High-contrast skip links must not be cyan on a white chip. */
html[data-contrast="high"] body.wc-body .wc-skip{background:#000!important;color:#fff!important;border:2px solid #fff!important}
/* CTA text contrast on dark school/lab layouts. */
html[data-theme="light"] body.mtn59-dark-canvas a.btn.primary,
html[data-theme="light"] body.mtn59-dark-canvas button.primary{
 background:#e7c46d!important;color:#11151c!important;border-color:#e7c46d!important;
}
html[data-contrast="high"] body.mtn59-dark-canvas a.btn.primary,
html[data-contrast="high"] body.mtn59-dark-canvas button.primary{
 background:#000!important;color:#fff!important;border-color:#fff!important;
}

/* Audit follow-up: templates that already switch their wall to white in light
   mode should keep dark text; fix only their CTAs, not the whole canvas. */
html[data-theme="light"] body.mtn59-cta :is(a.btn.primary,button.primary){background:#e7c46d!important;color:#11151c!important;border-color:#e7c46d!important}
html[data-contrast="high"] body.mtn59-cta :is(a.btn.primary,button.primary){background:#000!important;color:#fff!important;border-color:#fff!important}
body.mtn59-dark-canvas .footer-extra-links a{color:#a8c9ff!important}
html[data-contrast="high"] body.mtn59-dark-canvas .footer-extra-links a{color:#00e5ff!important}
html[data-theme="dark"] body.mtn59-evolution :is(.sheet,.curation,.phase-description) a{color:#a8dcff!important}
html[data-contrast="high"] body.mtn59-evolution :is(.sheet,.curation,.phase-description) a{color:#00e5ff!important}
html[data-theme="dark"] body.mtn59-error .exhibit-menu a{color:#e7c46d!important}
html[data-contrast="high"] body.mtn59-litnote .mtn-lit-route-note{background:#000!important;color:#fff!important;border-color:#fff!important}
html[data-contrast="high"] body.mtn59-litnote .mtn-lit-route-note :is(strong,b){color:#ffe600!important}
html[data-contrast="high"] body.mtn59-litnote .mtn-lit-route-note a{color:#00e5ff!important}
html[data-contrast="high"] body.mtn59-dark-canvas .mtn-school-quest-promo a{background:#000!important;color:#fff!important;border:2px solid #fff!important}
html[data-theme="dark"] body.mtn59-flow :is(.xf-kind b,.hero .kicker){color:#f5cb82!important}
html[data-theme="light"] body.mtn59-flow .hero .kicker{color:#71501f!important}
html[data-theme="dark"] body.mtn59-chat :is(.ix-p-buttons button.primary,button.dbl-play){background:#164f9c!important;color:#fff!important;border-color:#fff!important}
html[data-contrast="high"] body.mtn59-chat :is(.ix-p-buttons button.primary,button.dbl-play){background:#000!important;color:#fff!important;border-color:#fff!important}
html[data-contrast="high"] body.mtn59-dark-canvas .wr-skip{background:#000!important;color:#fff!important;border:2px solid #fff!important}

html[data-contrast="high"] body.wr-body .wr-skip{background:#000!important;color:#fff!important;border:2px solid #fff!important}
html[data-theme="dark"] body.mtn59-error .nf a{color:#e7c46d!important}
html[data-contrast="high"] body.mtn59-error .nf a{color:#00e5ff!important}
html[data-theme="dark"] body.mtn59-error a{color:#e7c46d!important}
html[data-contrast="high"] body.mtn59-error a{color:#00e5ff!important}

/* Accessible text colours on the deliberately light control panels of 3D rooms.
   This changes only HTML overlay text and leaves the 3D renderer untouched. */
html[data-theme="light"] body.mtn59-3d-ui .title-row .state{color:#304352!important}
html[data-theme="light"] body.mtn59-3d-ui .eyebrow{color:#205a49!important}
html[data-theme="light"] body.mtn59-3d-ui :is(a,.room-links a){color:#164f9c!important}
html[data-theme="light"] body.mtn59-3d-ui .mtn-3d-curation strong{color:#725016!important}
html[data-contrast="high"] body.mtn59-3d-ui :is(a,.room-links a){color:#00e5ff!important}
html[data-contrast="high"] body.mtn59-3d-ui .mtn-3d-curation strong{color:#ffe600!important}
html[data-contrast="high"] .mtn-preview-before-bar a{background:#000!important;color:#fff!important;border:1px solid #fff!important}
html[data-contrast="high"] a.skip{background:#000!important;color:#fff!important}
html[data-theme="light"] body.mtn59-3d-ui .mtn-standalone-langs :is(summary,.mtn-standalone-lang-options a,.mtn-standalone-lang-options span,summary span){color:#f3f5f7!important}
html[data-theme="light"] body.mtn59-3d-ui .museum-tools a{color:#a8dcff!important}

body.mtn59-cyber .xf-kind b{color:#f5cb82!important}


/* Residual dark-OS/light-museum contrast findings, verified in the audit. */
html[data-theme="light"] body.mtn59-evolution .lead{color:#253443!important}
html[data-theme="light"] body.mtn59-chat .ix-btn{background:#f0ca7a!important;color:#12171c!important;border-color:#a06a20!important}
html[data-theme="light"] body.mtn59-chat .kicker{color:#71501f!important}
html[data-theme="light"] body.mtn59-3d-ui .mtn-3d-curation strong{color:#725016!important}
html[data-theme="light"] body.mtn59-lab3d a.stage-exit{color:#b6dcff!important;background:#14212e!important}
html[data-theme="dark"] body.mtn59-lab3d a.stage-exit{color:#b6dcff!important;background:#14212e!important}
html[data-contrast="high"] body.mtn59-lab3d a.stage-exit{color:#fff!important;background:#000!important}
html[data-theme="light"] body.mtn59-dream :is(h3,summary){color:#73501d!important}
html[data-theme="dark"] body.mtn59-dream :is(h3,summary){color:#ffe29a!important}
html[data-contrast="high"] body.mtn59-dream :is(h3,summary){color:#ffe600!important}
/* The light archive-wall label needs darker ochre than the surrounding dark exhibit chrome. */
html[data-theme="light"] body.mtn59-flow .xf-wall .xf-kind b{color:#624211!important}
