/* Page content and the open menu follow the selected theme; header and dock stay dark. */
:root{--cl-text:#f3f6ff;--cl-theme-link:#a5c6ff}
#cl-navigation .cl-theme-toggle{grid-column:1/-1;width:100%;min-height:52px;margin:6px 0 0;padding:14px 18px;border:1px solid var(--cl-button-border);border-radius:6px;background:var(--cl-button-background);color:var(--cl-button-text);font:inherit;font-weight:650;text-align:center;cursor:pointer}
#cl-navigation .cl-theme-toggle:hover{background:var(--cl-button-hover);border-color:var(--cl-button-hover-border)}
@media screen{
 :is(.nav,.cl-dock,.cl-native-menu){color-scheme:dark;--cl-background:#010025;--cl-background-rgb:1,0,37;--cl-text:#f3f6ff;--cl-surface:#000d25;--cl-line:#12335e;--cl-muted:#b9c5d9;--cl-light:#a5c6ff;--cl-theme-link:#a5c6ff;--cl-button-background:#020b32;--cl-button-border:#163b78;--cl-button-text:#dce6f4;--cl-button-hover:#071b52;--cl-button-hover-border:#0086ff;color:var(--cl-text)}
 body[data-cl-experience] .nav{background:linear-gradient(90deg,#010025,#01022f 50%,#010025);border-color:#172552}
 body[data-cl-experience] .cl-dock{background:linear-gradient(90deg,rgba(1,0,37,.95),rgba(1,2,47,.95) 50%,rgba(1,0,37,.95));border-color:#172552}
 html[data-theme="light"]{color-scheme:light;--cl-background:#fff;--cl-background-rgb:255,255,255;--cl-text:#10203b;--cl-surface:#f3f6fc;--cl-line:#cbd4e1;--cl-muted:#4e5c72;--cl-light:#154da8;--cl-theme-link:#154da8;--cl-button-background:#f3f6fc;--cl-button-border:#cbd4e1;--cl-button-text:#10203b;--cl-button-hover:#e5eeff;--cl-button-hover-border:#154da8;background:#fff}
 html[data-theme="light"] body[data-cl-experience]{color:var(--cl-text);background:#fff}
 html[data-theme="light"] body[data-cl-experience] :is(main,.footer,.cl-dialog){background:#fff!important;color:var(--cl-text);border-color:var(--cl-line)}
 html[data-theme="light"] #cl-navigation .cl-menu-links a{color:var(--cl-text)}
 html[data-theme="light"] body[data-cl-experience] #cl-navigation>.cl-close{background:var(--cl-button-background);border-color:var(--cl-button-border);color:var(--cl-button-text)}
 html[data-theme="light"] body[data-cl-experience] #cl-navigation>.cl-close:hover{background:var(--cl-button-hover);border-color:var(--cl-button-hover-border)}
 html[data-theme="light"] .footer-logo{filter:brightness(0)}
 html[data-theme="light"] .menu-toggle span{background:var(--cl-text)}
 html[data-theme="light"] :is(.cl-footer-group a,.footer-legal,.footer-legal a,.footer-copyright,.cl-dialog h2){color:var(--cl-text)}
 html[data-theme="light"] :is(.cl-footer-group h2,.cl-dialog>.cl-eyebrow,.cl-eyebrow,.eyebrow){color:var(--cl-theme-link)}

 html[data-theme="light"] :is(.nav,.nav-social-btn,.menu-toggle){box-shadow:none}
 html[data-theme="light"] .home-hero.home-hero-standout{background:var(--cl-surface)}
 html[data-theme="light"] body:not(.mk-body) :is(h1,h2,h3,h4){color:var(--cl-text)}
 html[data-theme="light"] body:not(.mk-body) main :is(p,li,label,legend,figcaption,.muted,.small,.note,.news-byline,.news-meta,.news-section-heading>p,.guest-results,.tool-description){color:var(--cl-muted)}
 html[data-theme="light"] body:not(.mk-body) main :is(.news-meta>a,.news-feed-link,.news-breadcrumb,.news-article-body a,.news-headlines>a,.news-muted a,.guest-project,.guest-episode,.guest-search-label,.directory-category-title){color:var(--cl-theme-link)}
 html[data-theme="light"] body[data-cl-experience] :is(.policy-card,.privacy-card,.contact-card,.booking-form-container,.news-studio,.news-empty,.news-pitch,.news-article-aside,.news-article-body blockquote,.news-admin-panel,.news-admin-list a,.guest-card,.guest-empty,.card,.wallet-card,.tool-card,.cl-offers>a){background:var(--cl-surface)!important;border-color:var(--cl-line);color:var(--cl-text)}
 html[data-theme="light"] :is(.news-card h2,.news-card h3,.news-headlines h3,.news-article-body,.guest-copy h2,.tool-name,.guest-results p,.news-studio-episode strong){color:var(--cl-text)}
 html[data-theme="light"] :is(.news-studio-episode small,.news-studio-episode span span,.guest-role,.guest-invitation p,.guest-search label,.guest-sort label){color:var(--cl-muted)}
 html[data-theme="light"] :is(.news-card h2 a:hover,.news-card h3 a:hover,.news-headlines h3 a:hover,.guest-copy h2 a:hover){color:var(--cl-theme-link)}
 html[data-theme="light"] :is(.news-image,.guest-portrait,.podcast-thumb){background:var(--cl-surface)}
 html[data-theme="light"] :is(.news-search input,.guest-search,.guest-sort select,.cl-field input,.cl-field textarea,.cl-field select,.input,.textarea,.select,#site-search-input,.news-admin-form input,.news-admin-form textarea){background:#fff!important;color:var(--cl-text)!important;border-color:#8d9db4;color-scheme:light}
 html[data-theme="light"] :is(.guest-search input,.guest-search button){color:var(--cl-text)}
 html[data-theme="light"] :is(input,textarea)::placeholder{color:#596b83;opacity:1}
 html[data-theme="light"] select{appearance:auto;background-image:none!important}

 html[data-theme="light"] .policy-caption,html[data-theme="light"] :is(#home-partners,.partners-page) .partner-name{color:var(--cl-text)}
 html[data-theme="light"] .guest-intro a{color:var(--cl-theme-link)}
 html[data-theme="light"] .guest-search svg{color:var(--cl-muted)}
 html[data-theme="light"] option{background:#fff;color:var(--cl-text)}
 html[data-theme="light"] :is(.cl-lead-form,.cl-field,.cl-lead-form legend,.cl-form-note,.cl-dialog-email,.cl-feedback,.cl-request-summary,.cl-choices small,#site-search-form label){color:var(--cl-muted)}
 html[data-theme="light"] :is(.cl-form-note a,.cl-dialog-email a,#site-search-results h2){color:var(--cl-theme-link)}
 html[data-theme="light"] .cl-choices label>span{background:var(--cl-surface);color:var(--cl-text);border-color:var(--cl-line)}
 html[data-theme="light"] :is(.news-episode-links a,.news-episode-pending,.pill,.tag){background:var(--cl-surface);color:var(--cl-text);border-color:var(--cl-line)}
 html[data-theme="light"] :is(.news-episode-pending small,#site-search-results p){color:var(--cl-muted)}
 html[data-theme="light"] :is(.news-headlines,.news-card,.news-article-body,.news-share-actions,.news-related,.guest-actions,.guest-invitation,.cl-footer-nav){border-color:var(--cl-line)}
 html[data-theme="light"] body[data-cl-experience] .mk{--mk-bg:#fff;--mk-panel:#fff;--mk-panel-alt:#f5f7fc;--mk-text:#10203b;--mk-muted:#4e5c72;--mk-line:#cbd4e1;--mk-blue:#154da8;--mk-tint:#eef3fc;background:#fff!important}
 html[data-theme="light"] :is(a,button,input,textarea,select,summary):focus-visible{outline-color:#154da8!important}
 html[data-theme="light"] :is(.nav,.cl-dock,.cl-native-menu) :focus-visible{outline-color:#a5c6ff!important}
}

/* Site-wide atmosphere follows the default social card, including long pages. */
@media screen{
 html:not([data-theme="light"]){--cl-background:#010025;--cl-background-rgb:1,0,37;--cl-surface:#020d30;--cl-line:#163873;--cl-button-background:#020b32;--cl-button-border:#163b78;--cl-button-hover:#071b52;--cl-brand-atmosphere:radial-gradient(ellipse 55% 42% at 50% 65%,#003df899,#0023a580 32%,#01022f80 70%,transparent 100%),#010025}
 html:not([data-theme="light"]) body[data-cl-experience]{isolation:isolate;background:#010025}
 html:not([data-theme="light"]) body[data-cl-experience]::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--cl-brand-atmosphere)}
 html:not([data-theme="light"]) body[data-cl-experience] main{background:transparent}
 html:not([data-theme="light"]) body[data-cl-experience] .footer{background:linear-gradient(180deg,#010025e6,#01022f);border-color:var(--cl-line)}
 html:not([data-theme="light"]) body[data-cl-experience] #cl-navigation{background:var(--cl-brand-atmosphere)}
 html:not([data-theme="light"]) body[data-cl-experience] :is(.guest-card,.tool-card,.news-studio,.news-pitch,.news-article-aside,.contact-form-box,.news-empty,.guest-empty){background:linear-gradient(145deg,#03133b,#010821);border-color:var(--cl-line)}
 html:not([data-theme="light"]) body[data-cl-experience] :is(.guest-search-field,.guest-sort select,.news-search input,#site-search-input){background:#020e32;border-color:var(--cl-line)}
}

/* Shared finish inspired by the revised ChainLeak social artwork. */
@media screen{
 body[data-cl-experience] :is(.cl-primary,.cl-secondary,.btn-primary,.btn-secondary,.mk-button,.news-share,.news-categories a,.news-pagination a){border-radius:6px}
 body[data-cl-experience] .mk-button:not(.mk-button-outline){background:linear-gradient(135deg,var(--cl-blue-deep),var(--cl-blue));border-color:#0086ff;box-shadow:0 6px 20px #0053e326}
 body[data-cl-experience] .mk-button:not(.mk-button-outline):hover{background:linear-gradient(135deg,#003bb5,var(--cl-blue-hover));border-color:var(--cl-cyan)}
 .mk em{font-family:inherit;font-style:normal;font-weight:750;letter-spacing:-.035em}
 html:not([data-theme="light"]) body[data-cl-experience] :is(.news-image,.podcast-thumb,.about-founder-link){box-shadow:0 0 0 1px #1dbfff26,0 8px 26px #0053e30d}
 html:not([data-theme="light"]) body[data-cl-experience] :is(.nav,.footer){border-color:#12335e}
 html:not([data-theme="light"]) .mk{--mk-panel:#000d25;--mk-panel-alt:#001235;--mk-tint:#001856;--mk-line:#12335e;--mk-blue:#a5c6ff}
 html:not([data-theme="light"]) .mk-host-frame{background:linear-gradient(145deg,#001856,#000d25);border-color:#0086ff59;box-shadow:0 14px 44px #0053e31a}
 @media(hover:hover){
  html:not([data-theme="light"]) body[data-cl-experience] :is(.news-image,.about-founder-link):hover{box-shadow:0 0 0 1px #1dbfff66,0 8px 26px #0053e31a}
 }
}

/* Keep mobile theme and close controls stationary on one bottom row. */
@media screen and (max-width:980px){
 #cl-navigation{--cl-theme-left:max(6px,env(safe-area-inset-left))}
 #cl-navigation .cl-theme-toggle{position:fixed;top:var(--cl-close-top);left:var(--cl-theme-left);width:calc(var(--cl-close-left) - var(--cl-theme-left) - 10px);height:54px;min-height:54px;margin:0;padding:10px 14px;border-radius:4px;z-index:2}
 #cl-navigation::after{content:"";position:fixed;inset:auto 0 0;height:calc(100dvh - var(--cl-close-top) + 12px);background:linear-gradient(transparent,var(--cl-background) 12px);pointer-events:none;z-index:1}
 #cl-navigation>.cl-close{z-index:2}
}
