/* Muhaya dark theme. Built from the light palette: ink becomes the ground, paper becomes the text, accents are tuned for contrast on dark. */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{background:#0E1320!important;color:#ECEFF5}
html[data-theme="dark"] a{color:#8EADFF}
html[data-theme="dark"] a:hover{color:#ECEFF5}
html[data-theme="dark"] [data-mfx-root]{background-color:#0E1320!important;background-image:linear-gradient(to right,rgba(236,239,245,.045) 1px,transparent 1px),linear-gradient(to bottom,rgba(236,239,245,.035) 1px,transparent 1px)!important;color:#ECEFF5!important}

/* surfaces */
html[data-theme="dark"] [style*="background: rgb(247, 249, 252)"],html[data-theme="dark"] [style*="background-color: rgb(247, 249, 252)"],html[data-theme="dark"] [style*="background: rgb(240, 240, 240)"],html[data-theme="dark"] [style*="background-color: rgb(240, 240, 240)"]{background:#0E1320!important}
html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"],html[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"]{background:#161D2C!important}
html[data-theme="dark"] [style*="background: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(18, 24, 38)"]{background:#1B2336!important}
html[data-theme="dark"] [style*="background: rgb(29, 36, 54)"],html[data-theme="dark"] [style*="background-color: rgb(29, 36, 54)"]{background:#242D44!important}
html[data-theme="dark"] [style*="background: rgb(221, 247, 238)"],html[data-theme="dark"] [style*="background-color: rgb(221, 247, 238)"]{background:#12302A!important}
html[data-theme="dark"] [style*="rgb(245, 200, 76), rgb(255, 244, 233)"]{background:linear-gradient(180deg,rgba(245,200,76,.32),rgba(245,200,76,.07) 75%),#161D2C!important}
html[data-theme="dark"] [data-mfx-dark]{box-shadow:inset 0 1px 0 rgba(236,239,245,.08),inset 0 -1px 0 rgba(236,239,245,.08)}
html[data-theme="dark"] [style*="0px 22px 44px -26px"]{box-shadow:0 0 0 1px rgba(236,239,245,.09),0 24px 44px -26px rgba(0,0,0,.75)!important}

/* text */
html[data-theme="dark"] [style^="color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="; color: rgb(18, 24, 38)"]{color:#ECEFF5!important}
html[data-theme="dark"] [style^="color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="; color: rgb(59, 66, 82)"]{color:#C3CAD7!important}
html[data-theme="dark"] [style^="color: rgb(91, 98, 114)"],html[data-theme="dark"] [style*="; color: rgb(91, 98, 114)"]{color:#A3ABBB!important}
html[data-theme="dark"] [style^="color: rgb(138, 144, 160)"],html[data-theme="dark"] [style*="; color: rgb(138, 144, 160)"]{color:#A3ABBB!important}
html[data-theme="dark"] [style^="color: rgb(47, 104, 255)"],html[data-theme="dark"] [style*="; color: rgb(47, 104, 255)"]{color:#8EADFF!important}
html[data-theme="dark"] [style^="color: rgb(16, 163, 109)"],html[data-theme="dark"] [style*="; color: rgb(16, 163, 109)"]{color:#45D6A0!important}
html[data-theme="dark"] [style^="color: rgb(224, 98, 77)"],html[data-theme="dark"] [style*="; color: rgb(224, 98, 77)"]{color:#FF9A8A!important}
html[data-theme="dark"] [style^="color: rgb(185, 138, 10)"],html[data-theme="dark"] [style*="; color: rgb(185, 138, 10)"]{color:#E8B94A!important}

/* rules and borders */
html[data-theme="dark"] [style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="dashed rgb(18, 24, 38)"]{border-color:rgba(236,239,245,.30)!important}
html[data-theme="dark"] [style*="solid rgba(18, 24, 38"],html[data-theme="dark"] [style*="dashed rgba(18, 24, 38"]{border-color:rgba(236,239,245,.16)!important}
html[data-theme="dark"] svg [fill="#121826"]{fill:#ECEFF5}
html[data-theme="dark"] svg [stroke="#121826"]{stroke:#ECEFF5}

/* light accent grounds keep ink text (marigold buttons, coral and mint chips, the closing poster) */
html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"],html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"],html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"],html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"],html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"],html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"],html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"] [style^="color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"] [style^="color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"] [style^="color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"] [style^="color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"] [style^="color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"] [style^="color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"] [style*="; color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"] [style*="; color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"] [style*="; color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"] [style*="; color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"] [style*="; color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"] [style*="; color: rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"] [style^="color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"] [style^="color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"] [style^="color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"] [style^="color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"] [style^="color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"] [style^="color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"] [style*="; color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"] [style*="; color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"] [style*="; color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"] [style*="; color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"] [style*="; color: rgb(59, 66, 82)"],html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"] [style*="; color: rgb(59, 66, 82)"]{color:#121826!important}
html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"] [style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"] [style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"] [style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"] [style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"] [style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"] [style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"][style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"][style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"][style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"][style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"][style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"][style*="solid rgb(18, 24, 38)"]{border-color:#121826!important}
html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"] svg [fill="#121826"],html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"] svg [fill="#121826"],html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"] svg [fill="#121826"],html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"] svg [fill="#121826"],html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"] svg [fill="#121826"],html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"] svg [fill="#121826"]{fill:#121826}
html[data-theme="dark"] [style*="background: rgb(245, 200, 76)"] a,html[data-theme="dark"] [style*="background-color: rgb(245, 200, 76)"] a,html[data-theme="dark"] [style*="background: rgb(255, 140, 122)"] a,html[data-theme="dark"] [style*="background-color: rgb(255, 140, 122)"] a,html[data-theme="dark"] [style*="background: rgb(22, 199, 154)"] a,html[data-theme="dark"] [style*="background-color: rgb(22, 199, 154)"] a{color:#121826}

/* states */
html[data-theme="dark"] :focus-visible{outline-color:#F5C84C!important}
html[data-theme="dark"] [aria-pressed="true"][style*="background: rgb(18, 24, 38)"]{background:#ECEFF5!important;color:#121826!important}
html[data-theme="dark"] [data-mfx-card]:hover{box-shadow:0 0 0 1.5px rgba(236,239,245,.45),0 26px 44px -24px rgba(0,0,0,.8)!important}
html[data-theme="dark"] [data-sitcard]{background:#16C79A!important}
html[data-theme="dark"] [data-sitcard],html[data-theme="dark"] [data-sitcard] *{color:#121826!important}
html[data-theme="dark"] [data-sitcard]:hover{background:#3FD6AA!important;box-shadow:0 0 0 1.5px #ECEFF5,0 26px 44px -24px rgba(0,0,0,.8)!important}
html[data-theme="dark"] input,html[data-theme="dark"] textarea{color:#ECEFF5!important;caret-color:#F5C84C}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8F98AA}
html[data-theme="dark"] #nl-status{color:#FF9A8A!important}
html[data-theme="dark"] [data-r="hero-rest"]{text-shadow:none!important}
/* hero kicker keeps its yellow highlight in dark mode; dark text on it, since
   the dark theme's light body text would be unreadable on yellow. */
html[data-theme="dark"] [data-r="hero-tag"]{color:#121826!important}
html[data-theme="dark"] [data-menu-panel]{box-shadow:0 24px 40px -24px rgba(0,0,0,.8)!important}
@keyframes mhFlashD{0%{box-shadow:0 0 0 0 rgba(245,200,76,.9)}40%{box-shadow:0 0 0 8px rgba(245,200,76,.45)}100%{box-shadow:0 0 0 0 rgba(245,200,76,0)}}

/* theme toggle: moon in light, sun in dark */
[data-theme-toggle] svg{display:block;flex:none}
[data-theme-toggle] [data-sun]{display:none}
html[data-theme="dark"] [data-theme-toggle] [data-sun]{display:block}
html[data-theme="dark"] [data-theme-toggle] [data-moon]{display:none}
[data-theme-toggle]:hover{background:rgba(127,135,150,.14)!important}
html[data-theme="dark"] [data-mfx-nav]{box-shadow:0 1px 0 rgba(236,239,245,.12)}

/* Consider (the third move, wherever the framework appears: Method's card and
   section, Home's step, the Situations "how it works" step) uses the Situation
   cards' dark-mode treatment: mint ground, ink text (owner, 2026-11-04). Its
   diagram keeps ink nodes and a deeper green line so it reads on the mint; the
   white panels inside the Method section stay dark with light text. */
html[data-theme="dark"] [data-consider]{background:#16C79A!important;color:#121826!important}
html[data-theme="dark"] [data-consider] [style*="color: rgb(18, 24, 38)"],html[data-theme="dark"] [data-consider="card"] *{color:#121826!important}
html[data-theme="dark"] [data-consider="card"] [style*="solid rgba(18, 24, 38"],html[data-theme="dark"] [data-consider="card"] [style*="solid rgb(18, 24, 38)"],html[data-theme="dark"] [data-consider="card"][style*="solid rgb(18, 24, 38)"]{border-color:rgba(18,24,38,.3)!important}
html[data-theme="dark"] [data-consider] svg [fill="#121826"]{fill:#121826}
html[data-theme="dark"] [data-consider] svg [stroke="#121826"]{stroke:#121826}
html[data-theme="dark"] [data-consider] svg [fill="#16C79A"]{fill:#0B6B4C}
html[data-theme="dark"] [data-consider] svg [stroke="#16C79A"]{stroke:#0B6B4C}
html[data-theme="dark"] [data-consider="section"] [style*="background: rgb(255, 255, 255)"]{color:#ECEFF5!important}
