/* CORTEX deliberately keeps its own dark palette. All rules are scoped. */
.cortex-document{background:#09080e;color-scheme:dark}
body.cortex-body{margin:0;background:#09080e!important;background-image:none!important;color:#bb91ff;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;line-height:1.65;min-width:0;letter-spacing:.025em}
.cortex-body *, .cx-home *{box-sizing:border-box}
.cortex-body::before,.cortex-body::after{display:none!important}
.cortex-body a{color:inherit;text-decoration:none}
.cortex-body a:hover{text-decoration:none;color:#e2cfff}
.cortex-body :focus-visible,.cx-home :focus-visible{outline:2px solid #e1cbff!important;outline-offset:5px}
.cx-shell{max-width:1920px;margin:auto;padding:18px 26px 24px}
.cx-exit{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;margin-bottom:18px;color:#ad89df}
.cx-exit a{padding:9px 0}
.cx-panel{border:1px solid #513575;background:#0b0911;position:relative;border-radius:8px}
.cx-panel::before,.cx-panel::after{content:"";position:absolute;pointer-events:none;width:24px;height:1px;background:#b985ff;top:-1px;left:18px}
.cx-panel::after{top:auto;bottom:-1px;left:auto;right:18px}
.cx-header{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:30px 36px;margin-bottom:20px;min-height:155px}
.cx-brand{display:flex;flex-direction:column;flex:1;max-width:520px}
.cx-brand strong{font-size:clamp(32px,3.5vw,54px);font-weight:500;letter-spacing:.22em;line-height:1.2;color:#af76ff}
.cx-brand span{font-size:13px;letter-spacing:.12em;margin-top:8px}
.cx-brand small{font-size:10px;margin-left:8px}
.cx-system{border-left:1px solid #513575;padding-left:35px;min-width:240px;margin:0}
.cx-system div,.cx-metadata div{display:grid;grid-template-columns:125px 1fr;gap:18px}
.cx-system dt,.cx-metadata dt{color:#ae7dec;font-size:12px}
.cx-system dd,.cx-metadata dd{margin:0;overflow-wrap:anywhere}
.cx-signal{width:180px;text-align:center;font-size:9px;letter-spacing:.07em;color:#b889ff}
.cx-signal svg{width:100%;stroke:currentColor;stroke-width:1.1;display:block}
.cx-signal .cx-gridline{opacity:.2;stroke-width:.5}
.cx-status{font-size:10px;line-height:2.1;white-space:nowrap}.cx-status span{margin-left:16px}
.cx-layout{display:grid;grid-template-columns:minmax(270px,31%) minmax(0,1fr);gap:20px;align-items:start}
.cx-index{padding:22px 20px;min-height:550px;display:flex;flex-direction:column}
.cx-index h2,.cx-associations h2{font-family:inherit;font-size:13px;font-weight:400;letter-spacing:.06em;margin:0 0 20px;line-height:1.6;color:#bb91ff}
.cx-index h2 span:last-child{color:#9f77d0}
.cx-search{margin-bottom:24px}.cx-search label{display:block;font-size:11px;text-transform:uppercase;margin-bottom:7px}
.cx-search>div{display:flex;border:1px solid #513575}
.cx-search input{min-width:0;width:100%;border:0;border-radius:0;padding:12px;background:transparent;color:#d4b9fc;font:inherit;font-size:12px;box-shadow:none}
.cx-search input::placeholder{color:#ad91cd;opacity:1}
.cx-search button{border:0;border-left:1px solid #513575;border-radius:0;background:transparent;color:#c5a0ff;min-width:44px;min-height:44px;font:inherit;cursor:pointer}
.cx-search button:hover{background:#29173f}
.cx-list{list-style:none;padding:0;margin:0}.cx-list li{margin:0;padding:0}
.cx-list a{display:grid;grid-template-columns:68px minmax(0,1fr) 12px;gap:10px;align-items:center;min-height:48px;padding:10px 12px;font-size:12px;line-height:1.55}
.cx-list a>span:nth-child(2){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cx-list a[aria-current]{background:#a365f5;color:#120a20;box-shadow:0 0 24px #8f47ef17}
.cx-list a:hover{background:#28183e;color:#e0c6ff}.cx-list a[aria-current]:hover{background:#bb8aff;color:#120a20}
.cx-row-arrow{font-size:14px}.cx-index-end{margin-top:auto;padding-top:70px;font-size:9px;display:flex;justify-content:space-between;color:#aa83d7}
.cx-reader{padding:26px 34px;min-height:650px;min-width:0}
.cx-reader-top{display:flex;justify-content:space-between;gap:20px;font-size:16px;padding-bottom:16px;border-bottom:1px solid #3d2958;letter-spacing:.07em}
.cx-reader-top>span:last-child{font-size:10px;align-self:center;color:#a780d4}
.cx-metadata{margin:12px 0 30px;padding-bottom:24px;border-bottom:1px solid #68428f;line-height:1.9;font-size:12px}
.cx-metadata a{text-decoration:underline;text-underline-offset:3px}
.cx-reader h1{font-family:inherit;font-weight:400;font-size:clamp(26px,2.8vw,44px);line-height:1.3;letter-spacing:.005em;color:#b882ff;margin:0 0 25px;max-width:950px;overflow-wrap:anywhere}
.cx-content{font-size:clamp(15px,1.25vw,19px);line-height:1.85;letter-spacing:.005em;color:#c8adeb;max-width:76ch;overflow-wrap:anywhere}
.cx-content p{margin:0 0 1.25em}.cx-content h2,.cx-content h3{font:inherit;font-size:1.3em;color:#dac2ff;margin:1.6em 0 .7em}.cx-content a{text-decoration:underline}.cx-content img,.cx-content video,.cx-content iframe{max-width:100%;height:auto}.cx-content pre,.cx-content .wp-block-table{overflow:auto;max-width:100%}.cx-content blockquote{margin:24px 0;padding-left:24px;border-left:2px solid #9866d3}.cx-content .alignwide,.cx-content .alignfull{width:auto;margin-left:0;margin-right:0}.cx-content input{max-width:100%}
.cx-associations{margin-top:32px;padding-top:18px;border-top:1px solid #68428f}.cx-associations h2{margin-bottom:10px}.cx-associations ul{list-style:none;padding:0;margin:0}.cx-associations a{display:grid;grid-template-columns:85px 1fr;gap:18px;padding:12px 0}.cx-associations small{display:block;font-size:9px;letter-spacing:.08em;color:#ab83dc;margin-top:5px}.cx-associations small span{float:right}
.cx-empty{font-size:11px;color:#b58adf;line-height:1.9}.cx-empty span{color:#b7a2cd;font-size:12px}
.cx-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-top:36px;font-size:11px;text-transform:uppercase}.cx-actions a{padding:12px 0;min-height:44px}.cx-button,.cx-actions .cx-button{display:inline-flex;align-items:center;gap:25px;background:#a365f5;color:#130b21;padding:12px 18px;text-transform:uppercase;font-size:12px}.cx-button:hover{background:#c397ff;color:#130b21!important}
.cx-footer{display:flex;flex-wrap:wrap;align-items:center;gap:22px;padding:14px 18px;margin-top:20px;font-size:9px;letter-spacing:.05em;color:#b18be3}.cx-footer>span+span{border-left:1px solid #38204f;padding-left:20px}.cx-footer-status{margin-left:auto}.cx-footer-status i{display:inline-block;width:6px;height:6px;background:#b27cfb;margin-right:7px}
.cx-filter{font-size:11px;margin:0 0 16px;overflow-wrap:anywhere}.cx-filter a{display:block;text-decoration:underline;padding:8px 0}.cx-pagination{display:flex;flex-wrap:wrap;gap:12px;padding-top:20px}.cx-pagination>*{padding:8px}
.cx-skip{position:absolute;left:24px;top:-100px;background:#b985ff;color:#100a19!important;padding:12px;z-index:99999}.cx-skip:focus{top:10px}
.cx-home{margin:36px 0 56px;padding:28px 32px;border:1px solid #78519f;background:#0c0913;color:#cda7ff;border-radius:8px;position:relative}
.cx-home-top{display:flex;justify-content:space-between;gap:16px;font:11px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}.cx-home-top span:last-child{font-size:9px;color:#bd99e8}
.cx-home-copy>p{font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;margin:24px 0 8px;color:#bea9d6}.cx-home h2{font:400 clamp(20px,2.3vw,30px)/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;margin:0 0 22px;max-width:850px;letter-spacing:0}.cx-home a{color:inherit;text-decoration:none}.cx-home a:hover{text-decoration:none;color:#e2cfff}.cx-home-link{display:inline-block;min-height:44px;padding:10px 0;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.cx-home-link span{margin-left:20px}
@media(min-width:1500px){.cx-header{padding:32px 44px}.cx-reader{padding:30px 40px}.cx-index{padding:26px}.cx-list a{font-size:14px;grid-template-columns:76px minmax(0,1fr) 12px}.cx-index h2{font-size:15px}}
@media(max-width:1150px){.cx-signal{display:none}.cx-header{gap:20px;padding:26px}.cx-status{font-size:9px}.cx-reader{padding:24px}.cx-system{padding-left:24px;min-width:220px}.cx-brand span{font-size:11px}}
@media(max-width:850px){.cx-shell{padding:12px 16px 20px}.cx-layout{grid-template-columns:1fr}.cx-header{flex-wrap:wrap;padding:24px}.cx-brand{flex:1 1 240px}.cx-system{flex:1;min-width:190px}.cx-status{display:none}.cx-index{min-height:0}.cx-index-end{padding-top:24px}.cx-layout--single .cx-index{display:none}.cx-exit>span{display:none}.cx-list a{grid-template-columns:70px minmax(0,1fr) 12px;font-size:14px}.cx-list a>span:nth-child(2){white-space:normal}.cx-reader{min-height:0}.cx-footer-status{margin-left:0}.cx-reader-top>span:last-child{display:none}.cx-footer{gap:12px}.cx-home{padding:24px}.cx-home-top span:last-child{display:none}}
@media(max-width:480px){.cx-shell{padding:8px 12px 18px}.cx-header{gap:24px;padding:24px 20px}.cx-brand strong{font-size:38px}.cx-brand span{font-size:10px}.cx-system{border-left:0;border-top:1px solid #38254f;padding:16px 0 0;font-size:11px}.cx-system div{grid-template-columns:110px 1fr}.cx-reader{padding:20px}.cx-reader-top{font-size:13px}.cx-metadata div{grid-template-columns:94px 1fr;gap:10px}.cx-metadata{font-size:11px}.cx-metadata dt{font-size:10px}.cx-reader h1{font-size:27px}.cx-content{font-size:15px}.cx-associations a{grid-template-columns:65px 1fr;gap:10px;font-size:12px}.cx-footer>span{border:0!important;padding:0!important}.cx-footer>span:nth-child(2),.cx-footer>span:nth-child(3){display:none}.cx-footer{justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.cortex-body *,.cx-home *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.cx-exit a{display:inline-flex;align-items:center;min-height:44px}
.cx-pagination>*{display:inline-flex;align-items:center;min-height:44px;min-width:44px;justify-content:center}

/* A glass surface over a decorative neural galaxy; text retains the CORTEX palette. */
.cx-home{isolation:isolate;overflow:hidden;border-radius:28px;border:1px solid #c9a3fa55;padding:30px 36px;background:linear-gradient(115deg,#241b38d9,#2617389c 58%,#35204b99);box-shadow:inset 0 1px 1px #efdbff55,inset 0 -1px 1px #9b6cd133,0 18px 48px #06030c40;backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%)}
.cx-home::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(100deg,#130e20f5 0%,#181023dc 35%,#21102a55 65%,#2a174622 100%),linear-gradient(170deg,#e5c6ff22,transparent 30%,transparent 74%,#b883ff14)}
.cx-home::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 1px 1px 0 #f2dfff29,inset -1px -1px 0 #d1a4ff20;background:linear-gradient(135deg,#f4eaff0d,transparent 24%,transparent 75%,#debdff09)}
.cx-home-galaxy{position:absolute;z-index:-2;right:-4%;top:50%;transform:translateY(-50%);width:78%;height:145%;max-width:none;object-fit:cover;object-position:center;opacity:.95;pointer-events:none}
.cx-home-top{position:relative;z-index:1}
.cx-home-body{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(220px,1fr);gap:clamp(28px,4vw,72px);align-items:center;min-height:240px}
.cx-home-copy{min-width:0;padding:10px 0}
.cx-home h2{text-shadow:0 2px 18px #0b051d;max-width:760px}
.cx-home-copy>p{color:#c8b2e2}
.cx-home-link{padding:11px 17px;border:1px solid #d6b5ff4a;border-radius:999px;background:linear-gradient(140deg,#d0a6ff24,#a56cdb0b);box-shadow:inset 0 1px 0 #efdbff30,0 5px 18px #08041124;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.cx-home-link:hover{background:#c49af52e;text-decoration:none!important;border-color:#d4afff88}
.cx-home-archive{min-width:0;align-self:end;justify-self:end;margin:0 0 14px;max-width:100%;padding:13px 18px;border:1px solid #cba2ef30;border-radius:16px;background:#1d122951;box-shadow:inset 0 1px 0 #e4caff20;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.cx-home-archive dl{margin:0;font:10px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace}
.cx-home-archive dl>div{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;margin:2px 0}
.cx-home-archive dt{color:#b89acb}.cx-home-archive dd{margin:0;color:#d2b8ef;overflow-wrap:anywhere}
@media(max-width:1000px){.cx-home{padding:26px;border-radius:24px}.cx-home-body{min-height:0}.cx-home-galaxy{width:100%;right:-30%;opacity:.6}.cx-home::before{background:linear-gradient(100deg,#130e20f5,#181023d9 50%,#21102a66)}}
@media(max-width:480px){.cx-home{padding:24px}.cx-home-galaxy{right:-45%;width:140%;opacity:.4}.cx-home-copy>p{margin-top:20px}.cx-home h2{font-size:22px}}
.cx-signal{position:relative}
.cx-signal-trace{opacity:0;stroke:#e1c9ff;stroke-width:1.8;stroke-dasharray:12 88;stroke-dashoffset:100}
.cx-signal.is-running .cx-signal-base{opacity:.55}
.cx-signal.is-running .cx-signal-trace{opacity:1;animation:cx-signal-scan 4.8s linear infinite}
.cx-signal[data-paused="true"] .cx-signal-trace{animation-play-state:paused}
.cx-signal-toggle{position:absolute;top:-12px;right:-8px;min-width:28px;min-height:28px;padding:3px;border:1px solid #513575;border-radius:3px;background:#0b0911;color:#c5a0ff;font:11px/1 ui-monospace,monospace;cursor:pointer}
.cx-signal-toggle[hidden]{display:none}.cx-signal-toggle:hover{background:#28183e}
@keyframes cx-signal-scan{to{stroke-dashoffset:0}}
@media(max-width:1000px){.cx-home-body{display:block}.cx-home-archive{display:none}}
@media(prefers-reduced-motion:reduce){.cx-signal-trace,.cx-signal-toggle{display:none!important}.cx-signal.is-running .cx-signal-base{opacity:1}}

/* Navigation uses light and surfaces; inline editorial links retain a fine underline. */
.cortex-body a,.cx-home a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,text-shadow .18s ease}
.cx-brand strong{transition:color .18s ease,text-shadow .18s ease}
.cx-brand:hover strong{color:#d3adff;text-shadow:0 0 22px #aa6dff45}
.cx-brand:hover span{color:#dac0ff}
.cx-exit a:hover,.cx-actions a:not(.cx-button):hover,.cx-filter a:hover{color:#e2cfff;text-shadow:0 0 14px #ad79ef55}
.cx-filter a{text-decoration:none}
.cx-associations a:hover{background:#b67aff0c;box-shadow:inset 2px 0 #b67aff}
.cx-pagination a:hover{background:#28183e}
.cx-home h2 a:hover{color:#e1c6ff;text-shadow:0 0 22px #b886ff40}
.cortex-body .cx-metadata a{border-bottom:1px dotted #a779d080;text-decoration:none}
.cortex-body .cx-metadata a:hover{border-bottom-color:#d8b7ff;background:#b67aff14}
.cortex-body .cx-content a,.cortex-body .cx-content a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;text-decoration-color:#b489df80}
.cortex-body .cx-content a:hover{text-decoration-color:#e2cfff;background:#b67aff12}
@media(prefers-reduced-motion:reduce){.cortex-body a,.cx-brand strong,.cx-home a{transition:none}}
