/* NorthBound dark theme. Applied only when <html data-theme="dark">. */
/* twins of CSS injected by scripts */
html[data-theme="dark"] .nb-support{background:#0D1526;border-top:1px solid #1E2A44;border-bottom:1px solid #1E2A44}
html[data-theme="dark"] .nb-support a{color:#60A5FA}
html[data-theme="dark"] .nb-support strong{color:#60A5FA}
html[data-theme="dark"] .collection-avatar{background:#0D1526;color:#60A5FA}
html[data-theme="dark"] .card .article-open{color:#fff}
html[data-theme="dark"] .article-dialog{background:#111A2E;color:#E5E7EB;border:1px solid #1E2A44}
html[data-theme="dark"] .article-dialog header{background:#111A2E;border-bottom:1px solid #1E2A44}
html[data-theme="dark"] .article-dialog header span{color:#60A5FA}
html[data-theme="dark"] .article-dialog .article-close{color:#E5E7EB;border:1px solid #2A3A5C;background:#0D1526}
html[data-theme="dark"] .article-dialog a{color:#60A5FA}
html[data-theme="dark"] .article-project{border-top:1px solid #1E2A44}
html[data-theme="dark"] .article-cover{background:#111A2E}
/* ---------- theme toggle button (both themes; matches the Menu button) ---------- */
.nb-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;padding:0;margin:0 -8px 0 auto;border:1px solid #E2E8F0;border-radius:8px;background:#FFFFFF;color:#2563EB;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.nb-theme-toggle:hover{border-color:#2563EB}
.nb-theme-toggle:focus-visible{outline:2px solid #3B82F6;outline-offset:4px}
.nb-theme-toggle svg{display:block;width:20px;height:20px}
.nb-theme-toggle .nb-i-sun{display:none}
html[data-theme="dark"] .nb-theme-toggle .nb-i-sun{display:block}
html[data-theme="dark"] .nb-theme-toggle .nb-i-moon{display:none}
@media(min-width:1441px){
 .nb-nav .nb-theme-toggle{position:absolute;right:24px;top:50%;transform:translateY(-50%);margin:0}
 .nb-nav .nb-menu .nb-discord{right:78px}
 .nb-home-nav .nb-socials{margin-right:54px}
 .nb-nav{grid-template-columns:195px minmax(0,1fr) 229px}
 .nb-nav.nb-home-nav{grid-template-columns:170px minmax(0,1fr) 330px}
}
@media(max-width:700px){.nb-theme-toggle{width:42px;height:42px;flex-basis:42px;margin-right:-10px}}

/* ---------- dark palette: base ---------- */
html[data-theme="dark"]{background:#0B1220;color-scheme:dark}
html[data-theme="dark"] body{background:#0B1220;color:#E5E7EB}
html[data-theme="dark"] .nb-theme-toggle{background:#111A2E;border-color:#1E2A44;color:#FBBF24}
html[data-theme="dark"] .nb-theme-toggle:hover{border-color:#60A5FA}
html[data-theme="dark"] .nb-nav{background:#0E1629;box-shadow:0 1px 0 #1E2A44}
html[data-theme="dark"] .nb-nav .nb-menu{background:#0E1629}
@media(max-width:1440px){html[data-theme="dark"] .nb-nav .nb-menu[data-open]{border-bottom:1px solid #1E2A44}}
html[data-theme="dark"] .nb-brand img{box-shadow:0 0 0 1px #1E2A44}
html[data-theme="dark"] .nb-menu .nb-discord{background:#2563EB;color:#fff}
html[data-theme="dark"] .nb-menu .nb-discord:hover{background:#3B82F6;color:#fff}
html[data-theme="dark"] .nb-menu-toggle{background:#111A2E;border-color:#1E2A44;color:#93C5FD}
html[data-theme="dark"] ::selection{background:#1D4ED8;color:#fff}

/* inline style attributes written by the generator / page markup */
html[data-theme="dark"] .project-heading h2{color:#E5E7EB!important}
html[data-theme="dark"] .link-btn[style*="64748B"]{color:#94A3B8!important}
html[data-theme="dark"] p.meta[style*="0c3062"]{color:#93C5FD!important}
html[data-theme="dark"] .account a[style*="3b82f6"]{color:#60A5FA!important}

/* ---------- blue brand bands become a deep brand blue ---------- */
html[data-theme="dark"] body.toolkit-home{background:#0B1220}
html[data-theme="dark"] .landing{background:radial-gradient(ellipse at 65% 20%,#3B82F633,transparent 60%),linear-gradient(90deg,#F8FAFC0D 1px,transparent 1px),linear-gradient(#F8FAFC0D 1px,transparent 1px),#1E3A8A;background-size:auto,64px 64px,64px 64px,auto}
html[data-theme="dark"] .home-radar-hero{background:#1E3A8A}
html[data-theme="dark"] .tools-section,html[data-theme="dark"] .meet-section{background:linear-gradient(140deg,#1E3A8A,#172554)}
html[data-theme="dark"] .collection-feature{background:radial-gradient(ellipse at 80% 30%,#3B82F633,transparent 60%),linear-gradient(140deg,#1E3A8A,#172554)}
html[data-theme="dark"] .home-radar-x-pill{background:#FFFFFF;color:#1D4ED8}
html[data-theme="dark"] .latest-section{background:#0B1220}
html[data-theme="dark"] .home-essentials{background:#0D1526;border-top-color:#1E2A44}
html[data-theme="dark"] .latest-card,html[data-theme="dark"] .home-essential-card{border-color:#1E3A8A}
html[data-theme="dark"] .latest-card:hover,html[data-theme="dark"] .home-essential-card:hover{border-color:#3B82F6}
/* About page */
html[data-theme="dark"] #hero{background:#1E3A8A}
html[data-theme="dark"] #news-page{background:#0B1220}
html[data-theme="dark"] .team-x{background:#1E3A8A;color:#fff}
html[data-theme="dark"] .social-link:hover{background:#2563EB;border-color:#2563EB}
html[data-theme="dark"] .stat-label{color:rgba(255,255,255,.72)}
html[data-theme="dark"] .marquee-dot{color:rgba(96,165,250,.7)}
/* pressed filter pills read clearly as selected */
html[data-theme="dark"] .filter-row button[aria-pressed=true],html[data-theme="dark"] nav.sample button[aria-pressed=true]{background:#2563EB;border-color:#2563EB;color:#fff}
/* live / minting-now badge: slightly deeper red so white text passes contrast on dark */
html[data-theme="dark"] .card.state-red .date-badge{background:#DC2626;color:#fff}
