/* Integration boundaries: retain photographs, maps, video, artwork and all geometry. */
@media screen {
 html[data-mhc-theme="dark"], html[data-mhc-theme="dark"] body,
 html[data-mhc-theme="dark"] body.custom-background,
 html[data-mhc-theme="dark"] #wrapper { background-color:var(--mhc-appearance-canvas); color:var(--mhc-appearance-text); }
 html[data-mhc-theme="dark"] .mh-home { background-color:var(--mhc-appearance-canvas); }
 html[data-mhc-theme="dark"] body.mhck { background-color:var(--mhc-appearance-kids-canvas); }
 html[data-mhc-theme="dark"] :where(input,textarea,select) { color-scheme:dark; caret-color:var(--mhc-appearance-text); }
 html[data-mhc-theme="dark"] :where(input,textarea)::placeholder { color:var(--mhc-appearance-muted); opacity:1; }
 html[data-mhc-theme="dark"] input:-webkit-autofill { -webkit-text-fill-color:var(--mhc-appearance-text); box-shadow:0 0 0 1000px var(--mhc-appearance-surface) inset; }
 html[data-mhc-theme="dark"] ::selection { background:#584431; color:#fff; }
 html[data-mhc-theme="dark"] :where(a,button,input,select,summary):focus-visible { outline-color:var(--mhc-appearance-teal); }
 html[data-mhc-theme="dark"] :is(.mh-strip,.mh-footer) { background-color:#1a0d05; }
 html[data-mhc-theme="dark"] .entry-content a:not(.btn):not(.button):not(.mhc-course__btn):not(.mhc-save-btn) { color:var(--mhc-appearance-teal); }
 html[data-mhc-theme="dark"] :is(.read-next-post .post-title,.thb-cookie-bar) a { color:var(--mhc-appearance-teal); }
 /* Match the saved Theme Options selector, whose legacy title color is important. */
 html[data-mhc-theme="dark"] .post:not(.post-white-title):not(.featured-style):not(.white-post-content) .post-title a { color:var(--mhc-appearance-accent)!important; }
 html[data-mhc-theme="dark"] .post:not(.post-white-title):not(.featured-style):not(.white-post-content) .post-title a:hover { color:var(--mhc-appearance-teal)!important; }
 html[data-mhc-theme="dark"] .mh-tile__blurb { color:#fff; }
 /* Interface strokes use ink; image overlays and brand bands retain their colors. */
 html[data-mhc-theme="dark"] .mobile-toggle span { background-color:var(--mhc-appearance-text); }
 html[data-mhc-theme="dark"] .mh-tile { background-color:var(--mhc-appearance-soft); }
 html[data-mhc-theme="dark"] .mh-tile[style*="--mh-brown"] { background-color:var(--mhc-appearance-accent-fill); }
 html[data-mhc-theme="dark"] .mh-tile[style*="--mh-sage"] { background-color:var(--mhc-appearance-success-fill); }
 html[data-mhc-theme="dark"] .mh-tile[style*="--mh-teal"] { background-color:var(--mhc-appearance-teal-fill); }
 /* Native Gutenberg UI presets; explicit artwork and image colors are untouched. */
 html[data-mhc-theme="dark"] .entry-content .has-thb-accent-color { color:var(--mhc-appearance-accent)!important; }
 html[data-mhc-theme="dark"] .entry-content .has-mh-teal-color { color:var(--mhc-appearance-teal)!important; }
 html[data-mhc-theme="dark"] .entry-content .has-mh-ink-color { color:var(--mhc-appearance-text)!important; }
 html[data-mhc-theme="dark"] .entry-content :is(.has-mh-white-background-color,.has-white-background-color) { background-color:var(--mhc-appearance-surface)!important; }
 html[data-mhc-theme="dark"] .entry-content .has-mh-cream-background-color { background-color:var(--mhc-appearance-soft)!important; }
 /* Leaflet controls follow appearance; original tile/territory colors stay intact. */
 html[data-mhc-theme="dark"] :is(.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-control-zoom a,.leaflet-control-layers,.leaflet-tooltip) { background-color:var(--mhc-appearance-raised); color:var(--mhc-appearance-text); border-color:var(--mhc-appearance-line); }
 html[data-mhc-theme="dark"] .leaflet-popup-content a { color:var(--mhc-appearance-teal); }
 html[data-mhc-theme="dark"] .leaflet-control-attribution { background:var(--mhc-appearance-surface); color:var(--mhc-appearance-muted); }
 html[data-mhc-theme="dark"] .leaflet-control-attribution a { color:var(--mhc-appearance-teal); }
 /* Standalone subscription/payment wrappers skip the adult theme. */
 html[data-mhc-theme="dark"] body.mhc-appearance-standalone a { color:var(--mhc-appearance-teal); }
 html[data-mhc-theme="dark"] body.mhc-appearance-standalone :is(button,a.btn) { background-color:var(--mhc-appearance-teal-fill); border-color:var(--mhc-appearance-teal); color:#fff; }
 html[data-mhc-theme="dark"] body.mhc-appearance-standalone a.quiet { background:transparent; color:var(--mhc-appearance-teal); }
}
