/* ScriptCamp 9.4.1 — consistent light palette and homepage-only RTL sidebar */
body[class*="theme-"]{background:#f5f7fb!important;color:#263447!important}
body[class*="theme-"] .site-header{background:linear-gradient(110deg,#ffffff,#f7fbff)!important;color:#243247!important;border-bottom:1px solid #e5ebf3!important;box-shadow:0 5px 22px rgba(31,54,84,.07)!important}
body[class*="theme-"] .site-header a,body[class*="theme-"] .site-header .desktop-nav a,body[class*="theme-"] .site-header .user-nav>a{color:#26384d!important}
body[class*="theme-"] .site-header .desktop-nav a:hover,body[class*="theme-"] .site-header .user-nav>a:hover{color:var(--app-primary,#3278a8)!important}
body[class*="theme-"] .site-footer{background:#eef3f8!important;color:#34445a!important;border-top:1px solid #dfe7f0!important}
body[class*="theme-"] .site-footer a{color:#28749b!important}
body[class*="theme-"] .page-title,body[class*="theme-"] .page-heading{background:#fff!important;color:#26384d!important;border:1px solid #e3eaf2!important;border-right:4px solid var(--app-primary,#4b91b8)!important;box-shadow:0 6px 20px rgba(35,58,84,.05)!important}
body[class*="theme-"] .article,body[class*="theme-"] .card,body[class*="theme-"] .side-box{background:#fff!important;color:#2c3c50!important;border-color:#e4eaf1!important}
body[class*="theme-"] .muted,body[class*="theme-"] .post-meta{color:#68788d!important}
body[class*="theme-"] .article h1,body[class*="theme-"] .article h2,body[class*="theme-"] .article h3,body[class*="theme-"] .card h2,body[class*="theme-"] .card h3{color:#24364c!important}
/* All theme shells: main content occupies the left column, sidebar the right column. */
body[class*="theme-"] [class$="-page-layout"]:has(> aside),
body[class*="theme-"] [class$="-shell"]:has(> aside),
body[class*="theme-"] .sah-tabs-layout:has(> aside){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(245px,310px)!important;grid-template-areas:"main sidebar";gap:22px!important;align-items:start!important;direction:ltr!important}
body[class*="theme-"] [class$="-page-layout"]:has(> aside)>main,
body[class*="theme-"] [class$="-shell"]:has(> aside)>main{grid-area:main;direction:rtl;min-width:0}
body[class*="theme-"] [class$="-page-layout"]:has(> aside)>aside,
body[class*="theme-"] [class$="-shell"]:has(> aside)>aside{grid-area:sidebar;direction:rtl;min-width:0}
body[class*="theme-"] .sah-tabs-layout:has(> aside)>main{grid-area:main;direction:rtl;min-width:0}
body[class*="theme-"] .sah-tabs-layout:has(> aside)>aside{grid-area:sidebar;direction:rtl;min-width:0}
body[class*="theme-"] [class$="-sidebar"],body[class*="theme-"] [class$="-aside"],body[class*="theme-"] .sah-tabs-rail{position:relative!important;top:auto!important;align-self:start;background:#fff!important;color:#293b50!important;border:1px solid #e1e8f0!important;border-radius:20px!important;padding:16px!important;box-shadow:0 10px 28px rgba(32,54,80,.07)!important}
body[class*="theme-"] [class$="-side-card"],body[class*="theme-"] .sc-theme-side,body[class*="theme-"] .sah-rail-card,body[class*="theme-"] .sah-rail-links{background:#f8fbfe!important;color:#2b3e53!important;border:1px solid #e5edf5!important;border-radius:15px!important;box-shadow:none!important}
body[class*="theme-"] [class$="-side-card"] h3,body[class*="theme-"] .sc-theme-side h3,body[class*="theme-"] [class$="-side-card"] a,body[class*="theme-"] .sc-theme-side a,body[class*="theme-"] .sah-rail-links a{color:#2c4057!important}
body[class*="theme-"] [class$="-side-card"] small,body[class*="theme-"] .sc-theme-side small{color:#74849a!important}
body[class*="theme-"] [class$="-side-card"] a:hover,body[class*="theme-"] .sc-theme-side a:hover,body[class*="theme-"] .sah-rail-links a:hover{background:#eaf4fb!important;color:#176d94!important}
/* The formerly dark premium themes now use bright, readable surfaces. */
body.theme-nexora-market,body.theme-atelier-me,body.theme-airdrop-atlas{background:#f5f8fc!important;color:#27384d!important}
body.theme-nexora-market .nx-hero,body.theme-atelier-me .am-hero,body.theme-airdrop-atlas .aa-hero{background:linear-gradient(125deg,#ffffff 0%,#edf6fb 58%,#f7f2ff 100%)!important;color:#263b52!important;border:1px solid #e4edf5!important;box-shadow:0 14px 38px rgba(40,73,105,.08)!important}
body.theme-nexora-market .nx-hero h1,body.theme-nexora-market .nx-hero p,body.theme-atelier-me .am-hero h1,body.theme-atelier-me .am-hero p,body.theme-airdrop-atlas .aa-hero h1,body.theme-airdrop-atlas .aa-hero p{color:#263b52!important}
body.theme-nexora-market .nx-hero em,body.theme-atelier-me .am-hero em,body.theme-airdrop-atlas .aa-hero em{color:#267f9f!important}
body.theme-nexora-market .nx-side-card,body.theme-atelier-me .am-side-card,body.theme-airdrop-atlas .aa-side-card{background:#fff!important;color:#2a3c52!important;border:1px solid #e2eaf2!important;box-shadow:0 8px 24px rgba(35,59,86,.06)!important}
body.theme-nexora-market .nx-side-card h3,body.theme-atelier-me .am-side-card h3,body.theme-airdrop-atlas .aa-side-card h3,body.theme-nexora-market .nx-side-card a,body.theme-atelier-me .am-side-card a,body.theme-airdrop-atlas .aa-side-card a{color:#2a3c52!important}
body.theme-nexora-market .nx-card,body.theme-atelier-me .am-card,body.theme-airdrop-atlas .aa-card{background:#fff!important;color:#2b3d52!important;border:1px solid #e3eaf2!important;box-shadow:0 9px 25px rgba(35,59,86,.06)!important}
body.theme-nexora-market .nx-body h3,body.theme-atelier-me .am-card-copy h3,body.theme-airdrop-atlas .aa-body h3{color:#26394f!important}
body.theme-nexora-market .nx-body p,body.theme-atelier-me .am-card-copy p,body.theme-airdrop-atlas .aa-body p{color:#65758a!important}
/* Cosmic Library: retain the planet illustration, but replace the dark canvas with a bright space palette. */
body.theme-cosmic-library .cosmic-library{--cl-bg:#f3f7ff;--cl-panel:#ffffff;--cl-ink:#263b56;--cl-muted:#647b98;background:radial-gradient(ellipse at 73% 12%,#d9e8ff 0,transparent 36%),radial-gradient(ellipse at 12% 65%,#e5f8f7 0,transparent 38%),#f5f8ff!important;color:#263b56!important;box-shadow:0 20px 55px rgba(50,83,128,.10)!important;border:1px solid #e1eaf5}
body.theme-cosmic-library .cl-masthead,body.theme-cosmic-library .cl-explore,body.theme-cosmic-library .cl-footer{color:#263b56!important}
body.theme-cosmic-library .cl-card,body.theme-cosmic-library .cl-card-body{background:#fff!important;color:#2a405b!important}
body.theme-cosmic-library .cl-card h3,body.theme-cosmic-library .cl-section-heading h2{color:#243b59!important}
body.theme-cosmic-library .cl-card p,body.theme-cosmic-library .cl-section-heading p{color:#687f9b!important}
body.theme-cosmic-library .cl-cosmos{filter:drop-shadow(0 12px 22px rgba(65,117,173,.12))}
/* Kinetic Orbit keeps the ball/goalkeeper interaction, on a light field. */
body.theme-kinetic-orbit .ko-reader{--ko-ink:#24384f;--ko-muted:#647b95;background:linear-gradient(145deg,#f6fbff,#eaf4ff 55%,#f5f1ff)!important;color:#263b52!important;border:1px solid #dce8f5;box-shadow:0 18px 48px rgba(45,79,118,.10)!important}
body.theme-kinetic-orbit .ko-reader h1,body.theme-kinetic-orbit .ko-reader h2,body.theme-kinetic-orbit .ko-reader h3,body.theme-kinetic-orbit .ko-reader p,body.theme-kinetic-orbit .ko-reader small{color:#263b52!important}
body.theme-kinetic-orbit .ko-reader [class*="panel"],body.theme-kinetic-orbit .ko-reader [class*="card"]{background:#fff!important;color:#263b52!important;border-color:#dce8f5!important}
@media(max-width:900px){body[class*="theme-"] [class$="-page-layout"]:has(> aside),body[class*="theme-"] [class$="-shell"]:has(> aside),body[class*="theme-"] .sah-tabs-layout:has(> aside){grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"main" "sidebar";gap:16px!important}body[class*="theme-"] [class$="-sidebar"],body[class*="theme-"] [class$="-aside"],body[class*="theme-"] .sah-tabs-rail{width:100%;order:2}}

/* Topic-specific home modules */
.nx-resource-paths,.am-about-strip,.aa-learning-map{margin:20px 0 28px;padding:22px;border:1px solid #e2eaf3;border-radius:22px;background:linear-gradient(135deg,#fff,#f5faff);color:#2a3d53;box-shadow:0 8px 24px rgba(37,63,92,.05)}
.nx-path-intro span,.aa-map-heading>span,.am-about-strip>div>span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#3785a7}.nx-path-intro h2,.aa-map-heading h2,.am-about-strip h2{margin:7px 0;color:#263c54}.nx-path-intro p,.aa-map-heading p,.am-about-strip p{color:#6a7d92;margin:0}.nx-path-grid,.aa-map-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.nx-path-card{display:grid;gap:7px;padding:16px;border:1px solid #e2ebf4;border-radius:16px;background:#fff;color:#2c4057;text-decoration:none}.nx-path-card>b{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e8f5fb;color:#287b9e;font-size:20px}.nx-path-card small{color:#3785a7}.am-about-strip{display:flex;align-items:center;justify-content:space-between;gap:24px}.am-about-links{display:flex;gap:10px;flex-wrap:wrap}.am-about-links a{display:flex;align-items:center;gap:10px;padding:12px 15px;border-radius:15px;background:#fff;border:1px solid #e2eaf3;color:#2d4259;text-decoration:none}.am-about-links a>b{font-size:21px;color:#b27c45}.am-about-links a span{display:grid;font-weight:800}.am-about-links small{font-size:11px;color:#75859a;font-weight:500}.aa-map-grid article{padding:16px;border-radius:16px;background:#fff;border:1px solid #e2eaf3}.aa-map-grid article>b{float:left;color:#7da5bb;font-size:12px}.aa-map-grid article>i{display:block;font-style:normal;font-size:22px;color:#2786a3}.aa-map-grid h3{margin:10px 0 5px;color:#2a4057}.aa-map-grid p{margin:0;color:#687c92;font-size:13px;line-height:1.9}.nx-market-stats>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.nx-market-stats>div>b{padding:12px;border-radius:12px;background:#f1f7fb;color:#2c4258;font-size:20px}.nx-market-stats>div small{display:block;font-size:10px;font-weight:500;color:#75879b}.nx-side-cta,.am-side-cta{display:inline-block;margin-top:12px;color:#287da0!important;font-weight:800}.am-profile-card p{color:#6b7d91;line-height:1.9}.aa-safety-card ul{padding-right:18px;color:#42566d;line-height:2.1;font-size:12px}.aa-safety-card>small{display:block;padding:10px;border-radius:10px;background:#fff6e5;color:#8a6421;line-height:1.8}
@media(max-width:900px){.nx-path-grid,.aa-map-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.am-about-strip{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.nx-path-grid,.aa-map-grid{grid-template-columns:1fr}.nx-resource-paths,.am-about-strip,.aa-learning-map{padding:16px}}

/* Additional light side modules for the two signature themes and book layout */
body.theme-cosmic-library .cl-side-card{padding:16px;border-radius:15px;background:#f8fbff!important;border:1px solid #e4edf7!important;color:#30455f!important}body.theme-cosmic-library .cl-side-card h3,body.theme-cosmic-library .cl-side-card p,body.theme-cosmic-library .cl-side-card a{color:#30455f!important}body.theme-cosmic-library .cl-side-card p{line-height:1.9;color:#71839a!important}
body.theme-kinetic-orbit .ko-side-card{padding:16px;border-radius:15px;background:#f8fbff!important;border:1px solid #e1eaf5!important;color:#2b4058!important}body.theme-kinetic-orbit .ko-side-card h3,body.theme-kinetic-orbit .ko-side-card li{color:#2b4058!important}body.theme-kinetic-orbit .ko-howto-card ul{padding-right:18px;line-height:2.05;font-size:12px}
body.theme-seyedahmadhoseini-book .sah-book-home-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;grid-template-areas:"main sidebar";gap:22px;direction:ltr;align-items:start;max-width:1500px;margin:20px auto;padding:0 14px}body.theme-seyedahmadhoseini-book .sah-book-main{grid-area:main;direction:rtl;min-width:0}body.theme-seyedahmadhoseini-book .sah-book-sidebar{grid-area:sidebar;direction:rtl;display:grid;align-content:start;gap:14px;padding:15px;border:1px solid #e2eaf2;border-radius:18px;background:#fff;color:#2d4056;box-shadow:0 9px 26px rgba(35,58,85,.06)}body.theme-seyedahmadhoseini-book .sah-book-sidebar section{padding:14px;border-radius:13px;background:#f7fafd;border:1px solid #e7edf4}body.theme-seyedahmadhoseini-book .sah-book-sidebar section>span{font-size:10px;color:#4d8cab;font-weight:800}body.theme-seyedahmadhoseini-book .sah-book-sidebar h3{color:#2c4057}body.theme-seyedahmadhoseini-book .sah-book-sidebar a{display:block;padding:8px 0;border-bottom:1px solid #e7edf4;color:#3b526b;text-decoration:none}body.theme-seyedahmadhoseini-book .sah-book-sidebar small{display:block;color:#8190a3;font-size:10px}@media(max-width:900px){body.theme-seyedahmadhoseini-book .sah-book-home-layout{grid-template-columns:1fr;grid-template-areas:"main" "sidebar"}}
/* Brighten signature artwork while keeping each theme's own visual identity. */
body.theme-nexora-market .nx-orbit{background:radial-gradient(circle at 32% 25%,#ffffff 0,#dff5fb 42%,#b9d9f2 100%)!important;color:#347f9d!important;box-shadow:0 18px 40px rgba(67,133,171,.14)!important}
body.theme-atelier-me .am-portrait{background:linear-gradient(145deg,#fff0d8,#f6d9cf 55%,#dceef6)!important;color:#805c48!important;border:1px solid #ead9cb;box-shadow:0 18px 40px rgba(125,95,70,.10)!important}
body.theme-airdrop-atlas .aa-token{background:radial-gradient(circle at 35% 25%,#ffffff 0,#d8f7f0 42%,#dce8ff 100%)!important;color:#397f9b!important;box-shadow:0 18px 45px rgba(52,126,150,.14)!important}
body.theme-cosmic-library .cl-earth{filter:brightness(1.17) saturate(.9);box-shadow:inset -12px -12px 24px rgba(22,65,111,.20),inset 8px 7px 18px rgba(255,255,255,.65),0 0 28px rgba(65,175,189,.22)!important}
body.theme-cosmic-library .cl-cosmos-caption{text-shadow:none!important;color:#294a68!important}
body.theme-kinetic-orbit .ko-ball{background:radial-gradient(circle at 32% 22%,#ffffff 0,#d8fff6 18%,#9bdbe9 48%,#85aee0 78%,#a9a2e9 100%)!important;color:#243d58!important;box-shadow:inset -12px -16px 24px rgba(56,101,153,.16),inset 9px 8px 20px rgba(255,255,255,.8),0 20px 55px rgba(72,115,163,.20)!important}
body.theme-kinetic-orbit .ko-ball-content{text-shadow:none!important}
body.theme-kinetic-orbit .ko-ball-index,body.theme-kinetic-orbit .ko-ball-category,body.theme-kinetic-orbit .ko-ball-content h2,body.theme-kinetic-orbit .ko-ball-content p,body.theme-kinetic-orbit .ko-ball-cta{color:#25435e!important}
body.theme-kinetic-orbit .ko-ball-category,body.theme-kinetic-orbit .ko-ball-cta{background:rgba(255,255,255,.66)!important;border-color:rgba(56,108,151,.22)!important}
body.theme-kinetic-orbit .ko-stage-hint,body.theme-kinetic-orbit .ko-bottom-note,body.theme-kinetic-orbit .ko-count{color:#617a96!important}
body.theme-kinetic-orbit .ko-fullscreen{background:#fff!important;color:#35516e!important;border-color:#dce8f5!important}


/* ScriptCamp 9.4.3 — balanced mid-tone neutral surfaces (less white, never dark). */
body[class*="theme-"]{background:#e7ebf0!important;color:#2d3c50!important}
body[class*="theme-"] .site-header{background:linear-gradient(110deg,#e6ebf0,#dfe6ed)!important;color:#2b3c50!important;border-bottom:1px solid #cfd8e2!important;box-shadow:0 5px 20px rgba(36,54,76,.08)!important}
body[class*="theme-"] .site-header a,body[class*="theme-"] .site-header .desktop-nav a,body[class*="theme-"] .site-header .user-nav>a{color:#2b3c50!important}
body[class*="theme-"] .site-footer{background:#dfe5eb!important;color:#34465b!important;border-top:1px solid #cbd5df!important}
body[class*="theme-"] .page-title,body[class*="theme-"] .page-heading{background:#e1e7ed!important;color:#2a3b50!important;border-color:#cbd5df!important;box-shadow:0 5px 16px rgba(35,55,78,.06)!important}
body[class*="theme-"] .article,body[class*="theme-"] .card,body[class*="theme-"] .side-box{background:#e3e8ee!important;color:#2d3e52!important;border-color:#cbd5df!important;box-shadow:0 7px 20px rgba(36,55,77,.055)!important}
body[class*="theme-"] [class$="-sidebar"],body[class*="theme-"] [class$="-aside"],body[class*="theme-"] .sah-tabs-rail{background:#dce3ea!important;color:#2c3d51!important;border-color:#c6d1dc!important;box-shadow:0 8px 22px rgba(36,55,77,.07)!important}
body[class*="theme-"] [class$="-side-card"],body[class*="theme-"] [class*="widget"],body[class*="theme-"] .sc-theme-side,body[class*="theme-"] .sah-rail-card,body[class*="theme-"] .sah-rail-links,body[class*="theme-"] .sah-book-sidebar section{background:#e7ecf1!important;background-image:none!important;color:#304156!important;border:1px solid #cbd5df!important;box-shadow:0 4px 13px rgba(37,55,76,.045)!important}
body[class*="theme-"] [class$="-side-card"] h3,body[class*="theme-"] [class$="-side-card"] p,body[class*="theme-"] [class$="-side-card"] a,body[class*="theme-"] [class*="widget"] h2,body[class*="theme-"] [class*="widget"] h3,body[class*="theme-"] [class*="widget"] a,body[class*="theme-"] .sc-theme-side h3,body[class*="theme-"] .sc-theme-side a{color:#2d4056!important}
body[class*="theme-"] [class$="-side-card"] small,body[class*="theme-"] [class*="widget"] small{color:#64758a!important}
body[class*="theme-"] .post-grid .card,body[class*="theme-"] .nx-card,body[class*="theme-"] .am-card,body[class*="theme-"] .aa-card{background:#e2e8ee!important;color:#2d3e52!important;border-color:#cbd5df!important}
body.theme-cosmic-library .cosmic-library{background:radial-gradient(ellipse at 73% 12%,#cbd9e8 0,transparent 36%),radial-gradient(ellipse at 12% 65%,#d1e1df 0,transparent 38%),#e2e8ef!important}
body.theme-cosmic-library .cl-card,body.theme-cosmic-library .cl-card-body,body.theme-cosmic-library .cl-side-card{background:#e3e9ef!important;color:#30445a!important;border-color:#cbd6e0!important}
body.theme-kinetic-orbit .ko-reader{background:linear-gradient(145deg,#e5ebf1,#dce6ef 55%,#e6e2ef)!important;color:#2d4056!important;border-color:#cbd6e0!important}
body.theme-kinetic-orbit .ko-reader [class*="panel"],body.theme-kinetic-orbit .ko-reader [class*="card"],body.theme-kinetic-orbit .ko-side-card{background:#e4eaf0!important;color:#30445a!important;border-color:#cbd6e0!important}
body.theme-nexora-market .nx-side-card,body.theme-atelier-me .am-side-card,body.theme-airdrop-atlas .aa-side-card{background:#e2e8ee!important;color:#2e4055!important;border-color:#cbd5df!important}
body.theme-nexora-market .nx-card,body.theme-atelier-me .am-card,body.theme-airdrop-atlas .aa-card{background:#e4e9ef!important;color:#304257!important;border-color:#cbd5df!important}
@media(max-width:900px){body[class*="theme-"] [class$="-sidebar"],body[class*="theme-"] [class$="-aside"],body[class*="theme-"] .sah-tabs-rail{background:#dce3ea!important}}
