/* MyHistoire dark theme: html[data-mh-theme="dark"]. Same navy and red identity, light text on deep navy, every surface checked for contrast. */
html[data-mh-theme="dark"]{color-scheme:dark;
 --paper:#0B1426;--wash:#121D33;--ink:#E7ECF6;--text:#C9D1E0;--muted:#9AA5BA;--rule:#25324D;--deep:#FF8A80;
 --mh2-wash:#121D33;--mh2-rule:#25324D;--mh2-text:#C9D1E0;--mh2-muted:#9AA5BA;--mh2-navy:#E7ECF6;
 --theme-palette-color-1:#8FB3F0;--theme-palette-color-3:#C9D1E0;--theme-palette-color-4:#E7ECF6;--theme-palette-color-5:#25324D;--theme-palette-color-6:#121D33;--theme-palette-color-7:#0B1426;--theme-palette-color-8:#0B1426;
 --theme-text-color:#C9D1E0;--theme-headings-color:#E7ECF6;--theme-link-initial-color:#8FB3F0;--theme-border-color:#25324D}
html[data-mh-theme="dark"] body,html[data-mh-theme="dark"] #main-container,html[data-mh-theme="dark"] .site-main{background:#0B1426!important;color:#C9D1E0}
html[data-mh-theme="dark"] #header [data-row],html[data-mh-theme="dark"] #header .ct-sticky-container [data-row]{background:rgba(11,20,38,.96)!important;border-color:#25324D!important}
html[data-mh-theme="dark"] #header [data-id="menu"]>ul>li>a.ct-menu-link{color:#B7C2D6!important}
html[data-mh-theme="dark"] #header [data-id="menu"]>ul>li>a.ct-menu-link:hover,html[data-mh-theme="dark"] #header [data-id="menu"]>ul>li.current-menu-item>a.ct-menu-link{color:#fff!important}
html[data-mh-theme="dark"] #header .ct-header-socials svg,html[data-mh-theme="dark"] #header [data-id="search"] svg,html[data-mh-theme="dark"] #header .ct-header-trigger{fill:#B7C2D6!important;color:#B7C2D6!important}
html[data-mh-theme="dark"] #offcanvas .ct-panel-inner{background:#0B1426!important}
html[data-mh-theme="dark"] #footer,html[data-mh-theme="dark"] #footer [data-row]{background:#08101F!important;border-color:#25324D!important;color:#9AA5BA}
html[data-mh-theme="dark"] .entry-content :is(h1,h2,h3,h4,h5,h6),html[data-mh-theme="dark"] .entry-content :is(h1,h2,h3) a{color:#E7ECF6}
html[data-mh-theme="dark"] .entry-content :is(p,li,td,figcaption){color:#C9D1E0}
html[data-mh-theme="dark"] .entry-content :where(a:not(.wp-block-button__link)){color:#E7ECF6}
html[data-mh-theme="dark"] .entry-content .wp-block-button__link{background:#2E5596!important;border-color:#2E5596!important;color:#fff!important}
html[data-mh-theme="dark"] .entry-content .wp-block-button__link:hover{background:#BD322D!important;border-color:#BD322D!important}
html[data-mh-theme="dark"] .entry-content .is-style-outline .wp-block-button__link{background:transparent!important;border-color:#5C78AE!important;color:#E7ECF6!important}
/* image bands stay as they are: white on photo */
html[data-mh-theme="dark"] .mh2 .wp-block-cover :is(h1,h2,h3,p,li,a){color:#fff}
html[data-mh-theme="dark"] .mh2 .entry-content .mh2-btn-light .wp-block-button__link{background:#fff!important;border-color:#fff!important;color:#1F3864!important}
html[data-mh-theme="dark"] .mh2 .entry-content .mh2-btn-ghost .wp-block-button__link,html[data-mh-theme="dark"] .mh2 .entry-content .mh2-ph .is-style-outline .wp-block-button__link{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.6)!important;color:#fff!important}
html[data-mh-theme="dark"] .mh2 .entry-content .mh2-ph .wp-block-buttons.mh-ctas .wp-block-button:first-child .wp-block-button__link{background:#fff!important;border-color:#fff!important;color:#1F3864!important}
/* surfaces */
html[data-mh-theme="dark"] .mh2 .entry-content .mh2-topic,html[data-mh-theme="dark"] .mh2 .entry-content .mh2-ccard,html[data-mh-theme="dark"] .mh2 .entry-content p.mh2-chan,html[data-mh-theme="dark"] .mh2 .entry-content .mh-tool:not(.mh2-feature),html[data-mh-theme="dark"] .mh2 .entry-content ul.mh2-chips li{background:#121D33!important;border-color:#25324D!important}
html[data-mh-theme="dark"] .mh2 .entry-content .mh2-topics,html[data-mh-theme="dark"] .mh2 .entry-content .mh2-cside,html[data-mh-theme="dark"] .mh2 .entry-content .mh2-cred,html[data-mh-theme="dark"] .page .entry-content :is(.mh-offers,.mh-paths)>.wp-block-group,html[data-mh-theme="dark"] .page .entry-content .mh-kit,html[data-mh-theme="dark"] .page .entry-content .mh-callout{background:#0F182C!important}
html[data-mh-theme="dark"] .mh2 .entry-content p.mh2-chan::before{background:#2E5596}
html[data-mh-theme="dark"] .mh2 .entry-content p.mh2-chan strong,html[data-mh-theme="dark"] .mh2 .entry-content p.mh2-chan a{color:#E7ECF6}
html[data-mh-theme="dark"] .mh2-ic{background:#2E5596}
html[data-mh-theme="dark"] .page .entry-content :is(.mh-trio,.mh-chapters,.mh2-kit2){border-top-color:#5C78AE}
html[data-mh-theme="dark"] .page .entry-content .mh-figures{background:#25324D}
html[data-mh-theme="dark"] .page .entry-content .mh-figures>.wp-block-group{background:#121D33}
html[data-mh-theme="dark"] .page .entry-content .mh-filters .wp-block-button__link{background:transparent!important;color:#C9D1E0!important;border-color:#25324D!important}
html[data-mh-theme="dark"] body:is(:has(#f-all:target),:not(:has(:target))) .mh-filters #f-all .wp-block-button__link,html[data-mh-theme="dark"] body:has(#f-portfolio:target) .mh-filters #f-portfolio .wp-block-button__link,html[data-mh-theme="dark"] body:has(#f-articles:target) .mh-filters #f-articles .wp-block-button__link{background:#E7ECF6!important;color:#0B1426!important;border-color:#E7ECF6!important}
/* forms */
html[data-mh-theme="dark"] .site-cf label{color:#E7ECF6}
html[data-mh-theme="dark"] .site-cf input,html[data-mh-theme="dark"] .site-cf select,html[data-mh-theme="dark"] .site-cf textarea{background:#0B1426!important;border-color:#33425F!important;color:#E7ECF6!important}
html[data-mh-theme="dark"] .site-cf-submit{background:#2E5596}
html[data-mh-theme="dark"] .ct-search-form input,html[data-mh-theme="dark"] .ct-search-box input{background:#121D33!important;color:#E7ECF6!important}
html[data-mh-theme="dark"] .mh-theme-btn{color:#E7ECF6;border-color:#33425F}
/* articles */
html[data-mh-theme="dark"] .single-post .entry-content :is(blockquote,pre,code){background:#121D33;color:#E7ECF6}
html[data-mh-theme="dark"] .entry-content table td,html[data-mh-theme="dark"] .entry-content table th{border-color:#25324D!important}
html[data-mh-theme="dark"] img[src*="myhistoire-logo"]{filter:none}
html[data-mh-theme="dark"] .mh2 .entry-content .mh2-topic figure,html[data-mh-theme="dark"] .entry-content .wp-block-post-featured-image,html[data-mh-theme="dark"] .mh-cards .wp-block-post-featured-image{background:#121D33!important}
/* article headers: the title stays white on the photo in dark mode */
html[data-mh-theme="dark"] .single-post .wp-block-cover .has-palette-color-8-color,html[data-mh-theme="dark"] .single-post .wp-block-cover .wp-block-post-title,html[data-mh-theme="dark"] .single-post .wp-block-cover .wp-block-post-terms a,html[data-mh-theme="dark"] .single-post .wp-block-cover p{color:#fff!important}
html[data-mh-theme="dark"] .single-post .wp-block-cover .wp-block-cover__background{background-color:#0B1426!important}
html[data-mh-theme="dark"] .entry-header .page-title,html[data-mh-theme="dark"] .hero-section .page-title{color:#fff!important}
html[data-mh-theme="dark"] .entry-content .mh-cards .wp-block-post,html[data-mh-theme="dark"] .mh2 .entry-content .mh-areas>.wp-block-group,html[data-mh-theme="dark"] .mh2 .entry-content .mh2-kitcol{background:#121D33!important;border-color:#25324D!important}
html[data-mh-theme="dark"] .mh2 .entry-content .mh-areas>.wp-block-group{border-left-color:#BD322D!important}
html[data-mh-theme="dark"] .mh2 .entry-content ul.mh2-chips li{background:#0B1426!important;color:#C9D1E0!important}
