@font-face{
  font-family:"Caudex";
  src:url('/atlas-assets/Caudex-Regular.ttf') format('truetype');
  font-style:normal;font-weight:400;font-display:swap;
}
/* One construction-site form, using the existing Atlas palette and panels. */
.atlas-local-badge{display:block;font-size:9px;letter-spacing:.07em;color:#9bb6b8;margin:6px 0 16px}
#workspace-left .sidebar-brand{font-family:var(--atlas-font-display);font-size:22px;font-weight:400;letter-spacing:0;line-height:1.25;padding:10px 4px;overflow-wrap:anywhere}
body>header .header-home{font-family:var(--atlas-font-display);font-size:17px;font-weight:400;letter-spacing:0}
/* Brand links stay quiet on pointer activation; keyboard focus remains visible. */
:is(#workspace-left .sidebar-brand,body>header .header-home){-webkit-tap-highlight-color:transparent}
:is(#workspace-left .sidebar-brand,body>header .header-home):focus{outline:none;box-shadow:none}
:is(#workspace-left .sidebar-brand,body>header .header-home):focus-visible{text-decoration:underline;text-decoration-color:var(--atlas-text-muted);text-decoration-thickness:1px;text-underline-offset:5px}
#workspace-index>.atlas-top-index>li{margin:2px 0}
#workspace-index>.atlas-top-index>li>.index-row>a{font-size:11px;font-weight:500;letter-spacing:normal}
#workspace-index .index-pending{padding:5px 4px 5px 24px;color:#71878d;font-size:10px;line-height:1.5}
#workspace-index .index-action{padding-left:24px}
#workspace-index .index-action button{font-size:11px;text-align:left;padding:5px 4px;border:0;background:transparent}
#atlas-personal,#atlas-settings{font-size:11px}
#system-tools{display:flex;align-items:center;gap:5px;margin-bottom:10px;border-bottom:1px solid #294048;padding-bottom:8px}
#system-tools>span{font-size:9px;letter-spacing:.15em;color:#8ca3ad;margin-right:auto}
#system-tools>button{width:30px;height:29px;padding:0;font-size:16px}
#system-tools>button:disabled{opacity:.35;cursor:default}
#atlas-related{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px;font-size:11px}
#atlas-related[hidden]{display:none}
#atlas-related>.eyebrow{width:100%;margin:0 0 3px}
#atlas-related>a{padding:4px 6px;border:1px solid #294048;border-radius:4px}
#central-world.atlas-hub{box-sizing:border-box;height:auto;min-height:100%;max-width:980px;margin:0 auto;padding:clamp(22px,4vw,54px);color:#d9e6e8}
.atlas-hub h1{font-size:clamp(26px,3.6vw,42px);font-weight:400;line-height:1.25;margin:14px 0 20px;overflow-wrap:anywhere}
.atlas-hub h2{font-size:18px;font-weight:500;line-height:1.6}
.atlas-hub p{line-height:1.9;font-size:13px}
.atlas-hub .atlas-intro{font-size:15px;color:#aec7ca;margin-bottom:28px}
.atlas-hub>label{display:block;font-size:12px;margin-bottom:8px}
.atlas-hub>input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #405d66;border-radius:5px;background:#101e25;color:#edf8f6;font:inherit}
.atlas-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;margin:20px 0 30px}
.atlas-cards>a{display:flex;align-items:center;min-height:72px;box-sizing:border-box;padding:18px;border:1px solid #2e4952;border-radius:6px;background:#14272b;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.atlas-cards>a:hover{border-color:#81b2b1;background:#1b3338}
.atlas-hub>article{padding:20px 0;border-bottom:1px solid #294048}
.atlas-hub time{font-size:11px;color:#8ca3ad}
.atlas-hub>button,.atlas-hub>a{display:inline-block;margin:8px 10px 8px 0;padding:9px 12px;border:1px solid #405d66;border-radius:5px;font-size:12px}
.atlas-hub a:focus-visible,.atlas-hub button:focus-visible,.atlas-hub input:focus-visible{outline:2px solid #b8e7e6;outline-offset:3px}
@media(max-width:600px){#central-world.atlas-hub{padding:22px 16px}.atlas-cards{gap:8px}}

/* Design baseline. Tokens are shared; their use is limited to the approved
   Atlaspedia discovery pages and their surrounding shell.
   Do not alias the older content variables (--ink / --accent / --line). */
:root{
  --atlas-bg:var(--ui-color-surface,#121620);
  --atlas-panel:var(--ui-color-surface-secondary,rgba(28,34,48,.72));
  --atlas-border:var(--ui-color-border,rgba(220,228,240,.15));
  --atlas-text:var(--ui-color-text,#E6EDF5);
  --atlas-text-muted:var(--ui-color-text-muted,#98A6B8);
  --atlas-accent-pink:var(--ui-color-accent-secondary,#FF94B9);
  --atlas-accent-cyan:var(--ui-color-accent,#00D2FE);
  --atlas-accent-gradient:linear-gradient(135deg,#FF94B9 0%,#4FACFE 100%);
  --atlas-hover-border:rgba(0,210,254,.38);
  --atlas-hover-shadow:0 8px 24px rgba(0,210,254,.10);
  --atlas-hover-surface:rgba(220,228,240,.04);
  --atlas-active-surface:rgba(79,172,254,.08);
  --atlas-shadow:0 6px 22px rgba(0,0,0,.10);
  --atlas-radius:var(--ui-shape-radius,14px);
  --atlas-control-radius:var(--ui-shape-control-radius,8px);
  --atlas-font:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic UI",sans-serif;
  --atlas-font-display:"Caudex",Georgia,"Times New Roman",serif;
}

/* An editorial shelf, independent of the canonical INDEX and saved state. */
#workspace-left #atlas-quick-access{display:grid;gap:10px;margin:4px 0 24px;padding-top:20px;border-top:1px solid var(--atlas-border);font-family:var(--atlas-font)}
#workspace-left #atlas-quick-access[hidden]{display:none}
#atlas-quick-access>h2{margin:0 0 3px;font-size:10px;font-weight:400;letter-spacing:.12em;color:var(--atlas-text-muted)}
#workspace-left #atlas-quick-access>a{position:relative;display:flex;flex-direction:column;gap:5px;padding:12px 28px 12px 12px;border:1px solid var(--atlas-border);border-radius:var(--atlas-control-radius);background:var(--atlas-panel);color:var(--atlas-text);overflow-wrap:anywhere;line-height:1.6}
#atlas-quick-access .quick-access-kind{font-size:9px;letter-spacing:.08em;color:var(--atlas-text-muted)}
#atlas-quick-access strong{font-size:12px;font-weight:400}
#atlas-quick-access .quick-access-arrow{position:absolute;right:10px;top:12px;color:var(--atlas-text-muted);font-size:12px}
#workspace-left #atlas-quick-access>a:hover{border-color:var(--atlas-hover-border);box-shadow:var(--atlas-hover-shadow)}
#workspace-left #atlas-quick-access>a:focus-visible{outline:2px solid var(--atlas-accent-cyan);outline-offset:3px}

/* The :has boundary disappears on navigation even if a renderer reuses the
   central element. No content canvas, iframe document or editor is themed. */
body:has(#central-world.atlas-hub.atlas-design-preview){background:var(--atlas-bg)}
body:has(#central-world.atlas-hub.atlas-design-preview)>header,
body:has(#central-world.atlas-hub.atlas-design-preview) :is(#workspace-left,#workspace-right){
  background:var(--atlas-bg);color:var(--atlas-text);border-color:var(--atlas-border);font-family:var(--atlas-font);font-weight:400;
}
body:has(#central-world.atlas-hub.atlas-design-preview) :is(.header-center,#workspace-right>.reader,#workspace-right>.conversation){border-color:var(--atlas-border)}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-right>.reader{background:var(--atlas-panel)}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-left{border-right:1px solid var(--atlas-border)}
body:has(#central-world.atlas-hub.atlas-design-preview) .header-center{border-inline:0}
body:has(#central-world.atlas-hub.atlas-design-preview) :is(.width-resizer,#pane-divider){background:transparent}
body:has(#central-world.atlas-hub.atlas-design-preview) #pane-divider{border-top:1px solid var(--atlas-border)}
body:has(#central-world.atlas-hub.atlas-design-preview) .width-resizer:is(:hover,:focus-visible){background:var(--atlas-hover-border)}
body:has(#central-world.atlas-hub.atlas-design-preview) :is(.atlas-local-badge,.index-location,.index-symbol,.index-pending,.local-updates,#workspace-left>.eyebrow,#header-shortcuts,.crumb-separator,#system-tools>span,#source-feedback,.empty-source){color:var(--atlas-text-muted)}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-left details{border-color:var(--atlas-border)}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-index .index-row>a{font-size:11px;line-height:1.7}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-index>.atlas-top-index>li>.index-row>a{font-size:11px;font-weight:500;letter-spacing:normal}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-index .index-toggle{color:var(--atlas-text-muted)}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-left nav a{position:relative;border-radius:var(--atlas-control-radius)}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-left nav a:hover{color:var(--atlas-text);background:var(--atlas-hover-surface)}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-left nav a[aria-current=page]{background:var(--atlas-active-surface);color:var(--atlas-text)}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-left nav a[aria-current=page]::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:2px;border-radius:2px;background:var(--atlas-accent-gradient)}
body:has(#central-world.atlas-hub.atlas-design-preview) #header-trail [aria-current=page]{color:var(--atlas-text)}
body:has(#central-world.atlas-hub.atlas-design-preview) .header-home{font-weight:400;letter-spacing:0}
body:has(#central-world.atlas-hub.atlas-design-preview) :is(#system-tools,#atlas-related>a,.source-tab){border-color:var(--atlas-border)}
body:has(#central-world.atlas-hub.atlas-design-preview) #system-tools{flex-shrink:0;padding-bottom:10px;margin-bottom:12px}
body:has(#central-world.atlas-hub.atlas-design-preview) :is(.brand-controls,.top-actions,.header-route,.workspace-modes,#system-tools,.conversation-tabs,#source-tabs,#add-source)>button,
body:has(#central-world.atlas-hub.atlas-design-preview) .source-tab>button{
  color:var(--atlas-tool-color,var(--atlas-text));background:transparent;border-color:var(--atlas-border);border-radius:var(--atlas-control-radius);font-family:var(--atlas-font);font-weight:400;
}
body:has(#central-world.atlas-hub.atlas-design-preview) #workspace-right .conversation-tabs>button{background:var(--atlas-bg)}
body:has(#central-world.atlas-hub.atlas-design-preview) :is(.brand-controls,.top-actions,.header-route,.workspace-modes,#system-tools,.conversation-tabs,#add-source)>button:not(:disabled):hover,
body:has(#central-world.atlas-hub.atlas-design-preview) .source-tab>button:hover{
  border-color:var(--atlas-hover-border);box-shadow:var(--atlas-hover-shadow);background:var(--atlas-hover-surface);
}
body:has(#central-world.atlas-hub.atlas-design-preview) :is(.workspace-modes,.conversation-tabs)>button:is([aria-pressed=true],[aria-selected=true]),
body:has(#central-world.atlas-hub.atlas-design-preview) .source-tab:has([aria-selected=true]){
  color:var(--atlas-text);background:var(--atlas-active-surface);border-color:var(--atlas-hover-border);
}
body:has(#central-world.atlas-hub.atlas-design-preview) #source-url{color:var(--atlas-text);background:var(--atlas-bg);border-color:var(--atlas-border);border-radius:var(--atlas-control-radius)}
body:has(#central-world.atlas-hub.atlas-design-preview) :is(#workspace-index,body>header,#system-tools,.workspace-modes,.conversation-tabs,#add-source) :is(a,button,input):not(.header-home,.sidebar-brand):focus-visible{outline:2px solid var(--atlas-accent-cyan);outline-offset:3px}

/* One main experience; discovery links live in the left INDEX / Quick Access. */
#central-world.atlas-hub.atlas-design-preview{
  display:block;max-width:1060px;padding:clamp(26px,4.5cqw,60px);padding-top:9px;color:var(--atlas-text);font-family:var(--atlas-font);font-weight:400;
}
#central-world.atlas-hub.atlas-design-preview>.eyebrow{color:var(--atlas-text-muted);font-size:10px;letter-spacing:.18em;margin:0 0 12px}
#central-world.atlas-hub.atlas-design-preview>h1{font-size:clamp(28px,4.5cqw,42px)!important;font-weight:400;letter-spacing:.01em;line-height:1.25;margin:0 0 18px}
#central-world.atlas-hub.atlas-design-preview>h1.atlaspedia-title{font-family:var(--atlas-font-display);font-size:clamp(36px,5.5cqw,52px)!important;letter-spacing:0}
#central-world.atlas-hub.atlas-design-preview>.atlas-intro{color:var(--atlas-text-muted);font-size:14px;line-height:1.9;margin:0 0 34px}
#central-world.atlas-hub.atlas-design-preview>.atlas-hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);gap:8px;width:100%;padding:0;margin:0 0 22px;overflow:hidden;
  color:var(--atlas-text);background:var(--atlas-panel);border:1px solid var(--atlas-border);border-radius:var(--atlas-radius);box-shadow:var(--atlas-shadow);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.atlas-hub.atlas-design-preview .atlas-hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(24px,3.7cqw,40px);min-width:0;color:var(--atlas-text);border-radius:var(--atlas-radius)}
.atlas-hub.atlas-design-preview .atlas-hero-label{font-size:10px;letter-spacing:.18em;color:var(--atlas-text-muted)}
.atlas-hub.atlas-design-preview .atlas-hero-label::before{content:"";display:block;width:32px;height:2px;margin-bottom:18px;background:var(--atlas-accent-gradient)}
.atlas-hub.atlas-design-preview .atlas-hero-copy h2{font-size:clamp(23px,3.2cqw,34px);font-weight:400;line-height:1.6;letter-spacing:.025em;white-space:pre-line;margin:16px 0}
.atlas-hub.atlas-design-preview .atlas-hero-copy p{font-size:12px;line-height:1.9;color:var(--atlas-text-muted);white-space:pre-line;margin:0 0 28px}
.atlas-hub.atlas-design-preview .atlas-hero-cta{font-size:12px;letter-spacing:.04em;border-bottom:1px solid var(--atlas-border);padding-bottom:7px}
.atlas-hub.atlas-design-preview .atlas-hero-visual{display:flex;flex-direction:column;min-width:0;align-self:stretch;margin:0;padding:16px 16px 12px 0}
.atlas-hub.atlas-design-preview .atlas-hero-image-link{display:block;border-radius:var(--atlas-control-radius)}
.atlas-hub.atlas-design-preview .atlas-hero-visual img{display:block;width:100%;height:auto;aspect-ratio:1200/1156;object-fit:contain;border-radius:var(--atlas-control-radius)}
.atlas-hub.atlas-design-preview .atlas-hero-visual figcaption{display:flex;flex-direction:column;gap:4px;margin-top:auto;padding-top:10px;font-size:10px;line-height:1.6;color:var(--atlas-text-muted);text-align:left;overflow-wrap:anywhere}
.atlas-hub.atlas-design-preview .atlas-image-credit{font-size:9px}
.atlas-hub.atlas-design-preview .atlas-hero-visual figcaption>a{align-self:flex-start;color:var(--atlas-text-muted);text-decoration:underline;text-underline-offset:3px}
.atlas-hub.atlas-design-preview .atlas-hero-visual figcaption>a:hover{color:var(--atlas-text)}
.atlas-hub.atlas-design-preview .atlas-hero :is(.atlas-hero-copy,.atlas-hero-image-link):focus-visible{outline-offset:-4px}
#central-world.atlas-hub.atlas-design-preview>.atlas-hero:hover{border-color:var(--atlas-hover-border);box-shadow:var(--atlas-hover-shadow)}
.atlas-hub.atlas-design-preview .atlas-entry-arrow{color:var(--atlas-text-muted);font-size:13px;flex-shrink:0}

/* Entity presentation only: the catalogue, search and destination URLs are unchanged. */
.atlas-hub.atlas-design-preview .atlas-search{padding:18px 20px;background:var(--atlas-panel);border:1px solid var(--atlas-border);border-radius:var(--atlas-radius)}
.atlas-hub.atlas-design-preview .atlas-search label{display:block;font-size:11px;color:var(--atlas-text-muted);letter-spacing:.04em;margin-bottom:10px}
.atlas-hub.atlas-design-preview .atlas-search input{width:100%;padding:10px 0;font:400 15px/1.5 var(--atlas-font);color:var(--atlas-text);border:0;border-radius:0;background:transparent;box-shadow:none}
.atlas-hub.atlas-design-preview .atlas-search input::placeholder{color:var(--atlas-text-muted);opacity:1}
.atlas-hub.atlas-design-preview .atlas-search:focus-within{border-color:var(--atlas-hover-border)}
.atlas-hub.atlas-design-preview .atlas-search input:focus-visible{outline-offset:6px;border-radius:2px}
.atlas-hub.atlas-design-preview .atlas-result-count{font-size:11px;color:var(--atlas-text-muted);margin:22px 0 10px}
.atlas-hub.atlas-design-preview .atlas-entity-list{padding:0;margin:0;list-style:none;border-top:1px solid var(--atlas-border)}
.atlas-hub.atlas-design-preview .atlas-entity-list>li{margin:0;border-bottom:1px solid var(--atlas-border)}
.atlas-hub.atlas-design-preview .atlas-entity-list>li>a{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:12px 10px;color:var(--atlas-text);border-left:2px solid transparent}
.atlas-hub.atlas-design-preview .atlas-entity-name{min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;column-gap:14px;row-gap:4px;overflow-wrap:anywhere}
.atlas-hub.atlas-design-preview .atlas-entity-name strong{font-size:14px;font-weight:400;line-height:1.7}
.atlas-hub.atlas-design-preview .atlas-entity-alias{font-size:11px;color:var(--atlas-text-muted);line-height:1.6}
.atlas-hub.atlas-design-preview .atlas-entity-list>li>a:hover{border-left-color:var(--atlas-hover-border);background:var(--atlas-hover-surface)}
.atlas-hub.atlas-design-preview .atlas-entity-list>li>a:hover .atlas-entry-arrow{color:var(--atlas-accent-cyan)}
.atlas-hub.atlas-design-preview .atlas-empty-results{padding:28px 10px;color:var(--atlas-text-muted);font-size:13px;line-height:1.8}
/* Lightweight Town / Kingdom guides. The descriptions are not launch controls. */
.atlas-hub.atlas-design-preview .atlas-discovery-description{max-width:58ch;color:var(--atlas-text-muted);margin:0 0 32px}
.atlas-hub.atlas-design-preview .atlas-discovery{padding:24px 0;border-block:1px solid var(--atlas-border)}
.atlas-hub.atlas-design-preview .atlas-discovery h2{font-size:16px;font-weight:400;margin:0 0 10px}
.atlas-hub.atlas-design-preview .atlas-discovery-status{font-size:12px;color:var(--atlas-text-muted);margin:0 0 22px}
.atlas-hub.atlas-design-preview .atlas-discovery-kinds{display:grid;gap:22px;margin:0}
.atlas-hub.atlas-design-preview .atlas-discovery-kinds>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:6px 24px}
.atlas-hub.atlas-design-preview .atlas-discovery-kinds dt{font-size:13px;line-height:1.8;color:var(--atlas-text)}
.atlas-hub.atlas-design-preview .atlas-discovery-kinds dd{font-size:12px;line-height:1.8;color:var(--atlas-text-muted);margin:0}
.atlas-hub.atlas-design-preview .atlas-discovery-links{display:flex;flex-wrap:wrap;gap:16px 28px;margin-top:28px}
.atlas-hub.atlas-design-preview .atlas-discovery-links>a{font-size:12px;line-height:1.8;padding:4px 0;border-bottom:1px solid var(--atlas-border);color:var(--atlas-text)}
.atlas-hub.atlas-design-preview .atlas-discovery-links>a:hover{border-bottom-color:var(--atlas-hover-border)}
.atlas-hub.atlas-design-preview :is(a,button,input):focus-visible{outline:2px solid var(--atlas-accent-cyan);outline-offset:3px}
@container(max-width:440px){.atlas-hub.atlas-design-preview .atlas-discovery-kinds>div{grid-template-columns:1fr}}
@container(max-width:660px){
  #central-world.atlas-hub.atlas-design-preview>.atlas-hero{grid-template-columns:1fr}
  .atlas-hub.atlas-design-preview .atlas-hero-copy{padding:28px 26px 8px}
  .atlas-hub.atlas-design-preview .atlas-hero-copy h2{font-size:27px;line-height:1.5}
  .atlas-hub.atlas-design-preview .atlas-hero-copy p{margin-bottom:16px}
  .atlas-hub.atlas-design-preview .atlas-hero-visual{padding:8px 20px 16px}
  .atlas-hub.atlas-design-preview .atlas-hero-image-link{width:min(100%,420px);align-self:center}
}
@media(prefers-reduced-motion:reduce){#central-world.atlas-hub.atlas-design-preview>.atlas-hero{transition:none}}

/* Shared top-page subtitle clearance and compact hero lead-in. */
#central-world.atlas-hub.atlas-design-preview[data-entrance]:not([data-entrance=""]){padding-top:31px}
.atlas-hub.atlas-design-preview[data-entrance]:not([data-entrance=""]) .atlas-hero-copy{padding-top:0;padding-bottom:0;justify-content:flex-start}
.atlas-hub.atlas-design-preview[data-entrance]:not([data-entrance=""]) .atlas-hero-copy::before{content:"";flex:1 0 20px}
.atlas-hub.atlas-design-preview[data-entrance]:not([data-entrance=""]) .atlas-hero-copy::after{content:"";flex:3 0 60px}
.atlas-hub.atlas-design-preview[data-entrance]:not([data-entrance=""]) .atlas-hero-copy>*{flex-shrink:0}


body:not(.mini-shell) #central-world.atlas-hub.atlas-design-preview[data-entrance]:not([data-entrance=""]){padding-top:19px}
