Merge pull request 'Alpha 1.0.0.7 — The Great Migration' (#309) from dev/MC:dev/alpha-1.0.0.7-the-great-migration into main

This commit is contained in:
Dev 2026-11-15 06:06:35 +01:00
commit c2df0caccf
8 changed files with 151 additions and 3 deletions

View file

@ -0,0 +1,20 @@
# One published header and footer
The build exports the same compiled navigation JavaScript, CSS, release metadata,
menu badges and public rates page served by the website Worker into
`dist/shared-chrome`. The current version is read from `web/release.json`; the
branding builder no longer keeps a second version literal.
After the first artifact containing these files is published, run
`scripts/install-shared-chrome.py` to inspect the alias plan, then `--apply`.
It changes only the existing shared asset alias targets in the four known nginx
configuration files, preserves response headers, validates nginx and rolls back
the configuration if validation/reload fails. Native applications retain their
existing `/dune-navigation.*` URLs while sharing the same compiled files.
Aliases follow the atomic `current` release symlink, so future successful pushes
update all connected headers and rates without copying host-specific files.
Use `--legacy --apply` before rolling back to a historical release from before
shared-chrome artifacts existed. The old static files are retained for that
explicit rollback. A shared navigation change marks affected menu destinations
as updates; untouched workspace sections retain no update badge.

View file

@ -0,0 +1,23 @@
import importlib.util
from pathlib import Path
import unittest
source = Path(__file__).resolve().parents[2]/'scripts/install-shared-chrome.py'
spec = importlib.util.spec_from_file_location('shared_chrome',source)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
class SharedChrome(unittest.TestCase):
def test_aliases_follow_current_release_and_keep_headers(self):
text='location = /dune-navigation.js { alias '+module.LEGACY+'portal-navigation.js; add_header Content-Security-Policy "unchanged" always; }'
updated=module.rewrite_paths(text)
self.assertIn(module.CURRENT+'portal-navigation.js',updated)
self.assertIn('Content-Security-Policy "unchanged"',updated)
self.assertEqual(module.rewrite_paths(updated),updated)
self.assertEqual(module.rewrite_paths(updated,True),text)
def test_unrelated_paths_and_comments_are_preserved(self):
text='# '+module.LEGACY+'portal-navigation.js\nlocation /other { alias /private/keep; }'
self.assertEqual(module.rewrite_paths(text),text)
if __name__=='__main__':
unittest.main()

View file

@ -36,3 +36,13 @@ mkdirSync(path.join(dist,'server'),{recursive:true});mkdirSync(path.join(dist,'.
let api=['feed-api.mjs','exchange-api.mjs','forum-api.mjs','community-api.mjs','portal-api.mjs'].map(file=>readFileSync(path.join(root,'worker',file),'utf8').replace(/export /g,'')).join('\n');let runtime=readFileSync(path.join(root,'worker/runtime.mjs'),'utf8').replace(/^import .*;$/gm,'');
writeSync(assetWriter,api+'\n'+runtime);closeSync(assetWriter);cpSync(path.join(root,'.openai/hosting.json'),path.join(dist,'.openai/hosting.json'));console.log('Built Worker with',assetCount,'embedded website assets');
if(existsSync(path.join(root,'drizzle')))cpSync(path.join(root,'drizzle'),path.join(dist,'.openai/drizzle'),{recursive:true});
// Native applications consume the same compiled chrome as the public Worker.
// nginx follows the atomically promoted current release, so no stale host copy
// can retain an old Alpha version, navigation badge or rates page.
const shared=path.join(dist,'shared-chrome');mkdirSync(shared,{recursive:true});
for(const name of ['portal-navigation.js','portal-navigation.css','release.json','menu-new-items.json','rates-and-charges.html','bank-rates.css']){
let content=readFileSync(path.join(web,name));
if(name==='portal-navigation.js')content=Buffer.from(withCanonicalMenu(withMenuBadges(content.toString('utf8'))));
if(name.endsWith('.html'))content=Buffer.from(preparePublicHtml(content.toString('utf8')));
writeFileSync(path.join(shared,name),content);
}

View file

@ -0,0 +1,74 @@
"""Point existing shared aliases at the atomic release; retain legacy rollback."""
from pathlib import Path
import argparse
import json
import os
import re
import subprocess
LEGACY = '/var/lib/dunerealms-public-rates/'
CURRENT = '/home/dunerealms/apps/dunerealms/current/dist/shared-chrome/'
ASSETS = ('portal-navigation.js', 'portal-navigation.css', 'release.json',
'menu-new-items.json', 'rates-and-charges.html', 'bank-rates.css')
CONFIGS = ('/etc/nginx/dunerealms-forums.conf',
'/etc/nginx/sites-enabled/cp.dunerealms.com.conf',
'/etc/nginx/sites-enabled/dunerealms-community-sites.conf',
'/etc/nginx/sites-enabled/dunerealms-wiki.conf')
def rewrite_paths(text, legacy=False):
source, destination = (CURRENT, LEGACY) if legacy else (LEGACY, CURRENT)
pattern = r'(\balias\s+)' + re.escape(source) + '(' + '|'.join(map(re.escape, ASSETS)) + r')(\s*;)'
return re.sub(pattern, lambda m: m[1]+destination+m[2]+m[3], text)
def atomic(path, content, metadata):
temporary = path.with_name(path.name+'.shared-chrome-new')
temporary.write_text(content)
temporary.chmod(metadata.st_mode & 0o777)
os.chown(temporary, metadata.st_uid, metadata.st_gid)
os.replace(temporary, path)
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--apply', action='store_true')
parser.add_argument('--legacy', action='store_true', help='Restore existing legacy aliases')
args = parser.parse_args()
root = Path(LEGACY if args.legacy else CURRENT)
for asset in ASSETS:
if not (root/asset).is_file():
raise RuntimeError('Publish the complete shared-chrome artifact first: '+asset)
release = json.loads((root/'release.json').read_text())
if not re.fullmatch(r'\d+(?:\.\d+){3}', release.get('version', '')):
raise RuntimeError('Invalid published release metadata')
user = re.search(r'^\s*user\s+([\w-]+)', Path('/etc/nginx/nginx.conf').read_text(), re.M)
nginx_user = user[1] if user else 'www-data'
for asset in ASSETS:
subprocess.run(['runuser','-u',nginx_user,'--','test','-r',str(root/asset)], check=True)
changes = {}
for name in CONFIGS:
path = Path(name).resolve(strict=True)
if not path.is_relative_to('/etc/nginx'):
raise RuntimeError('Unexpected nginx configuration target')
original = path.read_text()
updated = rewrite_paths(original, args.legacy)
if updated != original:
changes[path] = (original, updated, path.stat())
if not args.apply:
print(json.dumps({'plan':True,'configurations':len(changes),'assets':len(ASSETS),'legacy':args.legacy}))
return
if os.geteuid()!=0:
raise RuntimeError('Run as the authorised deployment operator')
try:
for path, (_, updated, metadata) in changes.items():
atomic(path, updated, metadata)
subprocess.run(['nginx','-t'], check=True, capture_output=True)
subprocess.run(['systemctl','reload','nginx'], check=True)
except Exception:
for path, (original, _, metadata) in changes.items():
atomic(path, original, metadata)
subprocess.run(['nginx','-t'], check=False, capture_output=True)
subprocess.run(['systemctl','reload','nginx'], check=False)
raise
print(json.dumps({'applied':True,'configurations':len(changes),'assets':len(ASSETS),'legacy':args.legacy}))
if __name__=='__main__':
main()

View file

@ -1,5 +1,6 @@
import {MAIN_MENU} from './main-menu.mjs';
import{existsSync,readFileSync,writeFileSync}from'node:fs';import{execFileSync}from'node:child_process';import{fileURLToPath}from'node:url';import path from'node:path';import{RELEASE_VERSION}from'./release-branding.mjs';
export function pagesForChanges(paths){const pages=new Set();for(let p of paths){p=p.replaceAll('\\','/');if(!p.includes('/tests/')){const scopes=[[/postbank|bank-rates/,'bank'],[/politic|election|charter/,'politics'],[/internal-mail|mail-service|post-pages/,'post'],[/organisation-|citizen-directory|account-admin|honours|permissions/,'bureau'],[/forge-pages|dev-request|git-identity/,'forge'],[/exchange-public|commodity/,'market'],[/passport|personal-records|user-pages/,'realm']];for(const [pattern,scope]of scopes)if(pattern.test(p)){pages.add('https://cp.dunerealms.com/');pages.add('https://cp.dunerealms.com/#'+scope);}}if(/website\/node\/staff-roster\.mjs$/.test(p))pages.add('https://www.dunerealms.com/staff.html');if(/website\/node\/memorials\.mjs$|website\/node\/public\/memorial\./.test(p))pages.add('https://www.dunerealms.com/');if(/website\/control-panel\//.test(p)||/website\/node\/(auth|permissions|account-admin|account-archive|honours|profile)\.mjs$/.test(p))pages.add('https://cp.dunerealms.com/');if(/website\/integrations\/azuriom\//.test(p))pages.add('https://www.dunerealms.com/shop.html');if(/website\/integrations\/osticket\//.test(p))pages.add('https://support.dunerealms.com/');if(/website\/web\/([a-z-]+)\.html$/.test(p)){const name=p.match(/([^/]+)\.html$/)[1];pages.add('https://www.dunerealms.com/'+(['index','portal'].includes(name)?'':name+'.html'));}}return[...pages].sort();}
export function pagesForChanges(paths){const pages=new Set();for(let p of paths){p=p.replaceAll('\\','/');if(!p.includes('/tests/')){if(/^website\/(?:web\/portal-navigation\.(?:css|js)|scripts\/(?:portal-navigation|main-menu)\.mjs)$/.test(p))for(const [,href]of MAIN_MENU)pages.add(href);const scopes=[[/postbank|bank-rates/,'bank'],[/politic|election|charter/,'politics'],[/internal-mail|mail-service|post-pages/,'post'],[/organisation-|citizen-directory|account-admin|honours|permissions/,'bureau'],[/forge-pages|dev-request|git-identity/,'forge'],[/exchange-public|commodity/,'market'],[/passport|personal-records|user-pages/,'realm']];for(const [pattern,scope]of scopes)if(pattern.test(p)){pages.add('https://cp.dunerealms.com/');pages.add('https://cp.dunerealms.com/#'+scope);}}if(/website\/node\/staff-roster\.mjs$/.test(p))pages.add('https://www.dunerealms.com/staff.html');if(/website\/node\/memorials\.mjs$|website\/node\/public\/memorial\./.test(p))pages.add('https://www.dunerealms.com/');if(/website\/control-panel\//.test(p)||/website\/node\/(auth|permissions|account-admin|account-archive|honours|profile)\.mjs$/.test(p))pages.add('https://cp.dunerealms.com/');if(/website\/integrations\/azuriom\//.test(p))pages.add('https://www.dunerealms.com/shop.html');if(/website\/integrations\/osticket\//.test(p))pages.add('https://support.dunerealms.com/');if(/website\/web\/([a-z-]+)\.html$/.test(p)){const name=p.match(/([^/]+)\.html$/)[1];pages.add('https://www.dunerealms.com/'+(['index','portal'].includes(name)?'':name+'.html'));}}return[...pages].sort();}
export function recordPageUpdates({root=fileURLToPath(new URL('../',import.meta.url)),paths,newPages=[],version=RELEASE_VERSION}={}){if(!/^\d+(?:\.\d+){3}$/.test(version))throw Error('Invalid release');const repo=path.resolve(root,'..');const publication=path.join(root,'publication-changes.json');if(paths===undefined&&existsSync(publication)){const change=JSON.parse(readFileSync(publication,'utf8'));if(!Array.isArray(change.paths)||!Array.isArray(change.added))throw Error('Invalid publication change record.');paths=change.paths;newPages=pagesForChanges(change.added).filter(href=>!href.startsWith('https://cp.dunerealms.com/'));}if(paths===undefined){let changed='';try{const gitRoot=execFileSync('git',['rev-parse','--show-toplevel'],{cwd:repo,encoding:'utf8',stdio:['ignore','pipe','ignore']}).trim();if(path.resolve(gitRoot)===repo)changed=execFileSync('git',['diff','--name-only','HEAD'],{cwd:repo,encoding:'utf8'}).trim();}catch(error){if(error?.status!==128&&error?.status!==129&&error?.code!=='ENOENT')throw error;}paths=changed?changed.split('\n'):[];}const file=path.join(root,'web/menu-new-items.json'),data=JSON.parse(readFileSync(file,'utf8'));const pages=pagesForChanges(paths);if(paths.length||existsSync(publication)){for(const item of data.items)delete item.badge;}for(const href of pages){let entry=data.items.find(x=>x.href===href);if(!entry){entry={href};data.items.push(entry);}entry.updatedIn=version;entry.badge=newPages.includes(href)?'NEW':'UPDATE';}writeFileSync(file,JSON.stringify(data,null,2)+'\n');return pages;}
export function menuBadgeScript(){const data=JSON.parse(readFileSync(new URL('../web/menu-new-items.json',import.meta.url),'utf8'));return `\n/* Central automatic release menu badges */\n(()=>{let items=${JSON.stringify(data.items)};function mark(){const release=document.querySelector('.dune-release-badge')?.textContent.match(/\\d+(?:\\.\\d+){3}/)?.[0];for(const a of document.querySelectorAll('header nav[aria-label="Main navigation"] a,#portals .portal[data-id]')){const href=a.matches('#portals .portal')?'https://cp.dunerealms.com/#'+a.dataset.id:a.href;const item=items.find(x=>x.href===href),label=['NEW','UPDATE'].includes(item?.badge)?item.badge:null;let tag=a.querySelector('.dune-new-overlay');if(label){if(!tag){tag=document.createElement('span');tag.className='dune-new-overlay';a.append(tag);}if(tag.textContent!==label)tag.textContent=label;tag.classList.toggle('dune-update-overlay',label==='UPDATE');tag.setAttribute('aria-label',label==='NEW'?'New this release':'Updated this release');}else if(tag)tag.remove();}}fetch('/menu-new-items.json',{cache:'no-store'}).then(r=>r.ok?r.json():null).then(data=>{if(Array.isArray(data?.items)){items=data.items;mark();}}).catch(()=>{});mark();new MutationObserver(mark).observe(document.body,{childList:true,subtree:true,characterData:true});})();\n`;}
export function withMenuBadges(s){return s.replace(/\n?\/\* Central automatic release menu badges \*\/[\s\S]*?(?=\n\/\*|$)/,'').replace(/\(\(\)=>\{const items=\[[\s\S]*?new MutationObserver\(mark\)\.observe\(document.body,\{childList:true,subtree:true,characterData:true\}\);\}\)\(\);/,'')+menuBadgeScript();}

View file

@ -1,3 +1,6 @@
export const RELEASE_VERSION='1.0.0.5';
import {readFileSync} from 'node:fs';
export const RELEASE=Object.freeze(JSON.parse(readFileSync(new URL('../web/release.json',import.meta.url),'utf8')));
if(!/^\d+(?:\.\d+){3}$/.test(RELEASE.version))throw Error('Invalid public release version');
export const RELEASE_VERSION=RELEASE.version;
export const RELEASE_CSS=`\n.dune-release-badge{display:block;width:max-content;max-width:100%;margin:5px auto 0;padding:4px 12px;border:1px solid #ba9952;border-radius:20px;background:linear-gradient(120deg,#102d25,#263c2a);color:#ead190;font:600 11px/1.4 system-ui,sans-serif;letter-spacing:.09em;text-align:center;white-space:nowrap;box-shadow:0 2px 8px #0003}.dune-release-badge::before{content:'✦';margin-right:6px;color:#cda64f}\n`;
export const RELEASE_SCRIPT=`\n(()=>{const stamp=()=>{const brand=document.querySelector('.dune-site-header .wordmark');if(!brand)return false;if(!brand.querySelector('.dune-release-badge')){const badge=document.createElement('span');badge.className='dune-release-badge';badge.textContent='Alpha';brand.append(badge);fetch('/release.json',{cache:'no-store'}).then(r=>r.ok?r.json():null).then(release=>{if(release&&release.stage==='alpha'&&/^\\d+(?:\\.\\d+){3}$/.test(release.version))badge.textContent='Alpha '+release.version;}).catch(()=>{});}return true;};if(!stamp()){const observer=new MutationObserver(()=>{if(stamp())observer.disconnect();});observer.observe(document.documentElement,{childList:true,subtree:true});}})();\n`;

View file

@ -0,0 +1,15 @@
import test from 'node:test';import assert from 'node:assert/strict';import {readFileSync} from 'node:fs';
import worker from '../dist/server/index.js';
import {RELEASE_VERSION} from '../scripts/release-branding.mjs';
import {pagesForChanges} from '../scripts/menu-updates.mjs';
test('Native shared artifacts exactly match the public Worker responses, including compiled navigation and metadata',async()=>{
for(const name of ['portal-navigation.js','portal-navigation.css','release.json','menu-new-items.json','rates-and-charges.html','bank-rates.css']){
const response=await worker.fetch(new Request('https://www.dunerealms.com/'+name),{},{});
assert.equal(response.status,200,name);assert.equal(await response.text(),readFileSync(new URL('../dist/shared-chrome/'+name,import.meta.url),'utf8'),name);
}
const release=JSON.parse(readFileSync(new URL('../dist/shared-chrome/release.json',import.meta.url),'utf8'));assert.equal(release.version,RELEASE_VERSION);
});
test('A shared header change marks affected menu destinations as updates',()=>{
const pages=pagesForChanges(['website/web/portal-navigation.css']);
for(const url of ['https://www.dunerealms.com/','https://cp.dunerealms.com/','https://forums.dunerealms.com/','https://support.dunerealms.com/','https://clans.dunerealms.com/'])assert(pages.includes(url),url);
});

View file

@ -104,7 +104,7 @@ header nav[aria-label="Main navigation"] a .dune-new-overlay,header nav[aria-lab
header.dune-site-header{position:relative}.dune-memorial{position:absolute;left:14px;top:10px;z-index:5;display:flex;flex-direction:column;align-items:center;width:116px;text-align:center;color:#ddd4bf;pointer-events:none;filter:drop-shadow(0 3px 5px #0008)}.dune-memorial img{display:block;width:88px;height:88px;object-fit:contain}.dune-memorial span{font:italic 9px/1.3 Georgia,serif;color:#bfb8aa}.dune-memorial strong{font:600 10px/1.4 Georgia,serif;letter-spacing:.02em;color:#e1d5b7}@media(max-width:700px){.dune-memorial{left:5px;top:5px;width:48px}.dune-memorial img{width:48px;height:55px}.dune-memorial span,.dune-memorial strong{display:none}header.dune-site-header>.wordmark{max-width:calc(100% - 104px);margin-left:48px!important;}}
/* Framed memorial with a quiet candle */
header .dune-memorial{width:200px;padding:12px 12px 15px;box-sizing:border-box;background:linear-gradient(140deg,#0b0c0bea,#171914eb);border:1px solid #786747;border-radius:7px;box-shadow:inset 0 0 0 3px #080b09,inset 0 0 0 4px #9a855b22,0 4px 15px #0005;}header .dune-memorial img{width:74px;height:78px;}header .dune-memorial span,header .dune-memorial strong{display:block;}header .dune-memorial strong{font-size:12px}.dune-memorial-dedication p{margin:8px 0 5px;font:10px/1.4 Georgia,serif;color:#c2b99f}.dune-memorial-dedication blockquote{margin:5px 0;font:italic 11px/1.5 Georgia,serif;color:#e6dcc5}.dune-memorial-dedication small{font:9px Georgia,serif;color:#9c9484}header .dune-memorial .dune-memorial-candle{position:relative;display:block;width:12px;height:24px;margin:17px auto 0;border-radius:2px 2px 3px 3px;background:linear-gradient(90deg,#8c7b57,#ead7ac 40%,#ad986c);box-shadow:0 2px 4px #0006}.dune-memorial-flame{position:absolute;left:3px;top:-13px;width:7px;height:13px;border-radius:70% 30% 60% 40%;background:radial-gradient(ellipse at 50% 80%,#fff9d5 0 22%,#f7c46a 40%,#c47732 75%);box-shadow:0 0 9px 3px #e7b15238;transform-origin:bottom center;animation:memorial-candle 3s ease-in-out infinite alternate}@keyframes memorial-candle{0%,100%{transform:rotate(-3deg) scaleY(.95);opacity:.9}50%{transform:rotate(3deg) scaleY(1.06);opacity:1}}@media(max-width:1100px){header .dune-memorial{position:relative;left:auto;top:auto;order:5;flex:0 0 calc(100% - 24px);width:calc(100% - 24px);max-width:360px;margin:12px auto 8px;display:grid;grid-template-columns:68px 1fr;column-gap:10px;text-align:left;align-items:center;}header .dune-memorial img{grid-column:1;grid-row:1/5;width:62px;height:72px;}header .dune-memorial>span:not(.dune-memorial-candle),header .dune-memorial>strong,.dune-memorial-dedication{grid-column:2;}header .dune-memorial .dune-memorial-candle{grid-column:1;grid-row:5;margin:14px auto 0;}header.dune-site-header>.wordmark{max-width:calc(100% - 65px);margin-left:0!important;}.dune-memorial-dedication blockquote{font-size:11px;}}@media(prefers-reduced-motion:reduce){.dune-memorial-flame{animation:none}}
header .dune-memorial{width:200px;padding:12px 12px 15px;box-sizing:border-box;background:linear-gradient(140deg,#0b0c0bea,#171914eb);border:1px solid #786747;border-radius:7px;box-shadow:inset 0 0 0 3px #080b09,inset 0 0 0 4px #9a855b22,0 4px 15px #0005;}header .dune-memorial img{width:74px;height:78px;}header .dune-memorial span,header .dune-memorial strong{display:block;}header .dune-memorial strong{font-size:12px}.dune-memorial-dedication p{margin:8px 0 5px;font:10px/1.4 Georgia,serif;color:#c2b99f}.dune-memorial-dedication blockquote{margin:5px 0;font:italic 11px/1.5 Georgia,serif;color:#e6dcc5}.dune-memorial-dedication small{font:9px Georgia,serif;color:#9c9484}header .dune-memorial .dune-memorial-candle{position:relative;display:block;width:12px;height:24px;margin:17px auto 0;border-radius:2px 2px 3px 3px;background:linear-gradient(90deg,#8c7b57,#ead7ac 40%,#ad986c);box-shadow:0 2px 4px #0006}.dune-memorial-flame{position:absolute;left:3px;top:-13px;width:7px;height:13px;border-radius:70% 30% 60% 40%;background:radial-gradient(ellipse at 50% 80%,#fff9d5 0 22%,#f7c46a 40%,#c47732 75%);box-shadow:0 0 9px 3px #e7b15238;transform-origin:bottom center;animation:memorial-candle 3s ease-in-out infinite alternate}@keyframes memorial-candle{0%,100%{transform:rotate(-3deg) scaleY(.95);opacity:.9}50%{transform:rotate(3deg) scaleY(1.06);opacity:1}}@media(max-width:1240px){header .dune-memorial{position:relative;left:auto;top:auto;order:5;flex:0 0 calc(100% - 24px);width:calc(100% - 24px);max-width:360px;margin:12px auto 8px;display:grid;grid-template-columns:68px 1fr;column-gap:10px;text-align:left;align-items:center;}header .dune-memorial img{grid-column:1;grid-row:1/5;width:62px;height:72px;}header .dune-memorial>span:not(.dune-memorial-candle),header .dune-memorial>strong,.dune-memorial-dedication{grid-column:2;}header .dune-memorial .dune-memorial-candle{grid-column:1;grid-row:5;margin:14px auto 0;}header.dune-site-header>.wordmark{max-width:calc(100% - 65px);margin-left:0!important;}.dune-memorial-dedication blockquote{font-size:11px;}}@media(prefers-reduced-motion:reduce){.dune-memorial-flame{animation:none}}
/* Preserve memorial contrast against native application quote styles */
header.dune-site-header .dune-memorial .dune-memorial-dedication blockquote{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:#e6dcc5!important;font:italic 11px/1.5 Georgia,serif!important;margin:5px 0!important}header.dune-site-header .dune-memorial .dune-memorial-dedication blockquote::before,header.dune-site-header .dune-memorial .dune-memorial-dedication blockquote::after{display:none!important}
@ -127,3 +127,5 @@ header.dune-site-header nav[aria-label="Main navigation"] a,header.dune-site-hea
#portals .portal::before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 85% 0%,color-mix(in srgb,var(--workspace-accent) 17%,transparent),transparent 65%);pointer-events:none}
#portals .portal[data-id="realm"]{--workspace-accent:#8dcbb1}#portals .portal[data-id="bureau"]{--workspace-accent:#cbb680}#portals .portal[data-id="forge"]{--workspace-accent:#a9a1d6}#portals .portal[data-id="politics"]{--workspace-accent:#d0a56b}#portals .portal[data-id="post"]{--workspace-accent:#86bacd}#portals .portal[data-id="bank"]{--workspace-accent:#e1c66c}#portals .portal[data-id="market"]{--workspace-accent:#cb9b7d}
#portals .portal>span:not(.dune-new-overlay){color:var(--workspace-accent)}#portals .portal.active,#portals .portal[aria-current="page"]{outline:2px solid var(--workspace-accent);outline-offset:-2px}#portals .portal:focus-visible{outline:3px solid #fff1c1;outline-offset:3px}
/* Reserve the memorial column; navigation may wrap before it can overlap it. */
@media(min-width:1241px){body>header.dune-site-header{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:12px 24px 12px 230px!important;min-height:270px!important}body>header.dune-site-header>nav[aria-label="Main navigation"]{flex-wrap:wrap!important;justify-content:center!important;flex:0 1 auto!important;max-width:100%!important;width:auto!important}}