/* The application shell is deliberately small. Atlas is the map home, while
   Discover and a selected place receive their own readable, full-width page. */
:root{--atlas-ink:#173c44;--atlas-muted:#526c70;--atlas-green:#236c6b;--atlas-accent:#ad603c;--atlas-line:#d3dfd9;--atlas-paper:#fffdf5}
body{background:linear-gradient(150deg,#f5f2df,#edf5ef 65%,#e0eff0)}
.masthead{background:var(--atlas-paper)}.masthead::before{content:'✳  Atlas';font-family:var(--jke-font-reading),Georgia,serif;font-size:1.18rem;font-weight:700;color:var(--atlas-ink);white-space:nowrap}.masthead .wordmark,.masthead .wordmark[hidden]{display:none!important}.brand-mark{color:var(--atlas-green)}
.atlas-header-tools{display:flex;align-items:center;gap:7px}.masthead nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0!important}.masthead nav button{min-height:44px}.masthead nav button[aria-current=page],.primary{background:var(--atlas-green);color:#fff}.atlas-utility{font-size:1.05rem;min-width:44px;padding:8px;opacity:.9}
.section-heading{margin-bottom:14px}.earth-entry{display:none}

/* Shared readable page framework. Luna supplies the content inside body. */
.atlas-context,.atlas-readable{width:min(1180px,100%);margin-left:auto;margin-right:auto;color:var(--atlas-ink)}.atlas-context{margin-bottom:20px}.atlas-readable{margin-bottom:28px}
.atlas-readable-body{min-width:0}.atlas-tool-header{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0 16px;border-bottom:1px solid var(--atlas-line)}
.atlas-tool-header>button{border:0;background:transparent;color:var(--atlas-green);padding:6px 2px;min-height:36px;text-decoration:underline}.atlas-tool-title{font-family:var(--jke-font-reading),Georgia,serif;font-size:clamp(1.15rem,2vw,1.45rem);margin-right:auto}.atlas-tool-tabs{display:flex;gap:6px;flex-wrap:wrap}.atlas-tool-tabs button{min-height:38px;padding:7px 12px;border-radius:999px;font-size:.9rem}.atlas-tool-tabs button[aria-current=page]{background:var(--atlas-green);border-color:var(--atlas-green);color:#fff}.atlas-path-strip:empty{display:none}.atlas-path-strip{margin:-8px 0 20px}
.atlas-readable-body{max-width:68ch;margin:0 auto}.atlas-place-section,.atlas-place-heading,.atlas-discover-heading,.atlas-path-heading{margin:0 0 32px}.atlas-place-section>h2,.atlas-discover-heading>h2,.atlas-path-heading>h2{font-size:clamp(1.45rem,2.6vw,2rem);margin-bottom:12px}.atlas-place-section p,.atlas-discovery p,.atlas-link-card p,.atlas-mission-link p{line-height:1.72}.atlas-place-region{color:var(--atlas-muted);font-weight:700}.atlas-place-sections{display:flex;gap:9px;flex-wrap:wrap;margin:-12px 0 22px}.atlas-place-sections .text-button{font-size:.78rem;min-height:32px;padding:3px 0}.atlas-locator{width:min(100%,720px);margin:20px auto 32px}.atlas-locator svg{display:block;width:100%;height:auto;max-height:360px;background:#dceff2;border:1px solid var(--atlas-line);border-radius:14px}.atlas-locator-land{fill:#eaf0cf;stroke:#698580;stroke-width:.55}.atlas-locator-land.selected{fill:#f6b961;stroke:#9d5d24;stroke-width:1.2}.atlas-locator-marker{fill:#713fbd;stroke:#fff;stroke-width:2}.atlas-locator figcaption{margin-top:8px}.atlas-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:16px 0}.atlas-facts dt{font-size:.76rem;font-weight:700;color:var(--atlas-muted);letter-spacing:.04em}.atlas-facts dd{margin:3px 0 0;font-weight:700}.atlas-discovery,.atlas-link-card,.atlas-mission-link{padding:18px 0;border-top:1px solid var(--atlas-line)}.atlas-discovery h3,.atlas-link-card h3,.atlas-mission-link h3{margin-bottom:8px}.atlas-source-list{padding-left:20px}.atlas-review-status{color:#765014;font-weight:700}.atlas-discover-search{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--atlas-line);border-radius:10px}.atlas-discover-results{display:grid;gap:12px;margin:18px 0}.atlas-search-result,.atlas-path-card{padding:18px;background:var(--atlas-paper);border:1px solid var(--atlas-line);border-radius:14px}.atlas-discover-paths{margin-top:28px}.atlas-path-steps{display:grid;gap:10px;padding-left:24px}.atlas-path-step{padding:12px 14px;border:1px solid var(--atlas-line);border-radius:10px;background:var(--atlas-paper)}.atlas-path-step.current{border-color:var(--atlas-green);box-shadow:0 0 0 2px #cfe5df}.atlas-path-step.complete{background:#edf6e8}.atlas-path-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

/* Atlas landing retains the original dependable SVG map and keyboard browser. */
#atlasView{max-width:1320px;margin:auto}.atlas-layout{grid-template-columns:minmax(0,1fr) 330px}.map-column{display:flex!important;flex-direction:column}.place-browser{order:-1;margin:0 0 16px}.place-browser summary{font-size:1rem}.notebook#placePanel{min-height:0}.map-column,.notebook{min-width:0}.atlas-start-actions{display:grid;gap:7px}.atlas-starts>button{display:block;width:100%;text-align:left}.atlas-starts .text-button{width:auto;text-align:left}

/* Existing specialist tools are intentionally full-width rather than wrapped by
   a second navigation bar. */
#globeView,#historyView,#earthView,#orreryView,#regionsView,#adventuresView,#journalView,#settingsView,#missionView{max-width:1180px;margin-left:auto;margin-right:auto}
#globeView .globe-app{border-radius:20px}.globe-app .globe-heading{display:none}.globe-intro{justify-content:flex-end;margin:0!important;min-height:0!important}.globe-intro>div:first-child{display:none}.globe-companion{height:60px!important;width:60px!important}.globe-intro .globe-companion{position:absolute;right:20px;top:12px;pointer-events:none}.globe-app{position:relative}.globe-favorites{padding-right:65px}
#adventuresView .adventure-toolbar{flex-wrap:wrap}#adventuresView .paper{display:flex;flex-direction:column;gap:10px}#adventuresView .paper h2{font-size:22px}#adventuresView .paper button{margin-top:auto}.orr-heading h2,.earth-profiles h2{color:var(--atlas-ink)}
#journeyDiscoveries{padding:18px;background:var(--atlas-paper);border:1px solid var(--atlas-line);border-radius:20px;margin-bottom:20px}#journeyDiscoveries button{margin:5px}#historyJourneyCollection{margin-top:34px}

/* Root's notebook renderer groups a broad collection into scannable shelves. */
.atlas-notebook{display:grid;gap:28px}.notebook-group>h2{font-size:1.25rem;margin:0 0 12px}.atlas-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.atlas-card-grid>.paper{height:100%}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--atlas-accent);outline-offset:3px}

@media(max-width:760px){
 .masthead::before{display:block;margin-bottom:10px}.masthead .wordmark,.masthead .wordmark[hidden]{display:none!important}.atlas-header-tools{width:100%}.masthead nav{grid-template-columns:repeat(3,minmax(0,1fr))!important;flex:1}.masthead nav button{font-size:.84rem!important;padding-inline:5px!important}
 .section-heading{display:block}.section-heading .counter{margin-top:10px}.atlas-layout{display:flex;flex-direction:column}.notebook#placePanel{width:100%}
 .atlas-readable{margin-bottom:18px}.atlas-tool-header{align-items:flex-start;gap:9px}.atlas-tool-title{width:calc(100% - 85px);padding-top:5px}.atlas-tool-tabs{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-tool-tabs button{min-height:44px}
 .atlas-card-grid{grid-template-columns:1fr}.globe-app{border-radius:12px}.atlas-readable-body{max-width:none}.atlas-locator{margin-left:0;margin-right:0}.atlas-facts{grid-template-columns:1fr}.atlas-place-section,.atlas-place-heading,.atlas-discover-heading,.atlas-path-heading{margin-bottom:26px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Finish the map-first shell without changing its learning tools. */
.masthead{padding-block:18px;gap:20px;box-shadow:0 2px 0 #173c4404}.masthead::before{font-family:var(--jke-font-ui),ui-rounded,system-ui,sans-serif;font-size:1.2rem;letter-spacing:-.025em}.masthead nav button{border-radius:11px;font-weight:700}.atlas-utility{border:1px solid var(--atlas-line);border-radius:11px;background:var(--atlas-paper)}.section-heading h1{font-size:clamp(1.9rem,3.5vw,2.65rem);letter-spacing:-.03em}.section-heading .eyebrow{color:var(--atlas-green);letter-spacing:.12em}.counter{font-size:.82rem;line-height:1.6;color:var(--atlas-muted);max-width:34ch}.atlas-starts{border:1px solid var(--atlas-line);box-shadow:0 5px 0 #173c4405;border-radius:20px}.atlas-starts h2{font-size:1.45rem;line-height:1.25}.atlas-starts p{color:var(--atlas-muted);line-height:1.65}.atlas-start-actions button{padding:12px 14px;text-align:left;border:1px solid var(--atlas-line);border-radius:11px;background:#f3f7ee}.atlas-start-actions button:hover{border-color:var(--atlas-green);background:#e7f2e9}.map-frame{border:1px solid var(--atlas-line);border-radius:18px;overflow:hidden}.place-browser{padding:16px;border:1px solid var(--atlas-line);border-radius:16px;background:var(--atlas-paper)}.place-browser summary{font-weight:700;color:var(--atlas-ink);cursor:pointer}.place-browser input{margin-top:12px;border-radius:9px}.place-list button{min-height:44px;border-radius:9px}.atlas-discover-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.5fr);gap:8px 16px;align-items:center;padding:20px;background:var(--atlas-paper);border:1px solid var(--atlas-line);border-radius:16px}.atlas-discover-controls label{font-size:.82rem;font-weight:700;color:var(--atlas-muted)}.atlas-discover-controls label:first-child{grid-column:1;grid-row:1}.atlas-discover-search{grid-column:1;grid-row:2}.atlas-discover-controls label:nth-of-type(2){grid-column:2;grid-row:1}.atlas-discover-filter{grid-column:2;grid-row:2;width:100%;min-height:48px;border:1px solid var(--atlas-line);border-radius:10px;background:white;padding:10px}.atlas-discover-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0}.atlas-discover-paths>h2,.atlas-discover-paths>p{grid-column:1/-1;margin:0}.atlas-path-card{display:flex;flex-direction:column;gap:10px;padding:20px}.atlas-path-card p{margin:0}.atlas-path-card button{margin-top:auto}.atlas-discover-pagination{display:flex;gap:16px;align-items:center;justify-content:center;padding:16px}.atlas-card-grid>.paper{padding:22px;border:1px solid var(--atlas-line);border-radius:16px}.atlas-card-grid>.paper h3{font-size:1.1rem}.atlas-notebook .notebook-group h2{letter-spacing:-.015em}.atlas-search-result h3{margin:6px 0 10px}.atlas-search-result>.eyebrow{color:var(--atlas-green)}@media(max-width:760px){.masthead{padding-block:14px;gap:10px}.masthead::before{margin-bottom:4px}.atlas-header-tools{gap:6px}.counter{max-width:none}.atlas-discover-paths{grid-template-columns:1fr}.atlas-discover-controls{grid-template-columns:1fr;padding:16px}.atlas-discover-controls>*{grid-column:1!important;grid-row:auto!important}.atlas-discover-paths{margin-block:22px}.atlas-discover-pagination{gap:10px;flex-wrap:wrap}.place-browser{padding:14px}.atlas-card-grid{grid-template-columns:1fr}}

body[data-jke-game-id="atlas"] main .primary{background:var(--atlas-green);border-color:var(--atlas-green);color:white}@media(max-width:760px){.map-column>.map-toolbar{order:0}.map-column>.map-frame{order:1}.map-column>.map-key{order:2}.map-column>.place-browser{order:3;margin-top:16px}.map-column>.guide{order:4}}

/* Assimilation: suite-owned UI tokens; scientific maps keep their data colors. */
:root{--subject-ink:var(--jke-suite-ink,#31264e);--subject-muted:var(--jke-suite-muted,#6d627d);--subject-accent:#7046ae;--subject-soft:#eee7f8;--subject-line:var(--jke-suite-line);--subject-paper:var(--jke-suite-paper,#fffaf2);--subject-ground:#f5f0f8;--atlas-ink:var(--jke-suite-ink,#31264e);--atlas-muted:var(--jke-suite-muted,#6d627d);--atlas-green:#7046ae;--atlas-accent:var(--jke-suite-focus,#7b4ed8);--atlas-line:var(--jke-suite-line);--atlas-paper:var(--jke-suite-paper,#fffaf2)}
body{background:linear-gradient(145deg,var(--jke-suite-paper,#fffaf2),#f1edf8 75%);color:var(--jke-suite-ink)}.masthead{background:var(--jke-suite-paper);border-color:var(--jke-suite-line)}.subject-brand{color:var(--jke-suite-ink)}.brand-glyph{background:#eee7f8;color:#7046ae}.paper,.history-card,.history-reader,.cards article,.atlas-starts,.place-browser{border-radius:var(--jke-suite-radius,18px);box-shadow:var(--jke-suite-shadow-sm)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--jke-suite-focus)}#syncStatus{font-size:.85rem}

/* Geography library and practical place windows. */
.atlas-world-search{margin:0 0 24px;padding:clamp(18px,3vw,30px);border:1px solid var(--atlas-line);border-radius:20px;background:var(--atlas-paper)}
.atlas-world-search h2{font-size:clamp(1.45rem,3vw,2.15rem);margin:0 0 16px}.atlas-world-search label{display:block;font-weight:700;font-size:.9rem;margin-bottom:6px}.atlas-world-search input{width:100%;min-height:50px}
.atlas-browse-shortcuts,.atlas-reference-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.atlas-browse-shortcuts button,.atlas-reference-buttons button{min-height:44px;padding:8px 14px;border-radius:24px}.atlas-browse-shortcuts [aria-pressed=true]{color:white;background:var(--atlas-green)}
.atlas-home-results:empty{display:none}.atlas-home-results{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--atlas-line);margin-top:12px;padding-top:12px}.atlas-home-results p{flex-basis:100%;margin:0}.atlas-home-results button{min-height:44px}
.atlas-discover-controls{grid-template-columns:minmax(0,1.4fr) minmax(150px,1fr) minmax(140px,.85fr)}.atlas-discover-controls label:nth-of-type(3){grid-column:3;grid-row:1}.atlas-discover-controls #atlasDiscoverRegion{grid-column:3;grid-row:2;min-height:48px;width:100%}.atlas-discover-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px}.atlas-discover-results>h2,.atlas-discover-results>p,.atlas-discover-pagination{grid-column:1/-1}.atlas-search-result{padding:18px;margin:0;border:1px solid var(--atlas-line);border-radius:14px;background:var(--atlas-paper);min-width:0}.atlas-search-result h3{font-size:1.2rem}
.atlas-place-sections{padding:12px 0;border-block:1px solid var(--atlas-line)}.atlas-place-sections .text-button{font-size:.85rem;min-height:44px;padding:6px 8px}.atlas-connection{border-left:3px solid var(--atlas-line);padding-left:14px;margin-block:16px}.atlas-connection button{font-weight:700}.atlas-connection p{margin:4px 0}
.atlas-here-now{scroll-margin-top:20px}.atlas-now-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.atlas-now-grid article{padding:18px;border:1px solid var(--atlas-line);border-radius:14px;min-width:0;background:var(--atlas-paper)}.atlas-now-grid article:last-child{grid-column:1/-1}.atlas-now-grid h3{font-size:1rem;margin:0 0 10px}.atlas-now-grid strong{display:block;font-size:1.2rem;line-height:1.4}.atlas-now-grid a{display:block;font-size:.82rem;margin-top:12px;overflow-wrap:anywhere}.atlas-now-grid p{line-height:1.5}.atlas-money-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px 10px;margin:14px 0}.atlas-money-controls label:nth-of-type(1){grid-column:1;grid-row:1}.atlas-money-controls label:nth-of-type(2){grid-column:2;grid-row:1}.atlas-money-controls label:nth-of-type(3){grid-column:3;grid-row:1}.atlas-money-controls select,.atlas-money-controls input{grid-row:2;min-width:0;width:100%}.atlas-money-controls label{font-size:.8rem}
.atlas-cost>label{display:block;margin:12px 0}.atlas-cost input,.atlas-cost select{display:block;width:100%;margin-top:6px;min-height:44px}.atlas-price-index{font-weight:700;padding:16px;background:#eee7f8;border-radius:12px}.atlas-place-section details,.earth-profile details{padding:12px 0;border-bottom:1px solid var(--atlas-line)}.atlas-place-section summary,.earth-profile summary{cursor:pointer;min-height:32px;font-weight:700}.atlas-place-section{scroll-margin-top:20px}
.earth-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));max-height:260px;overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--atlas-line);border-radius:12px;background:var(--atlas-paper)}.earth-list button{text-align:left;min-height:44px}.earth-profile p{line-height:1.7}.earth-profile .atlas-reference-buttons button{margin:0}.earth-map{max-width:820px;margin-inline:auto}.earth-map svg{max-height:300px}.earth-profile h2{scroll-margin-top:20px}
.atlas-windowlet{position:fixed;margin:auto;width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 36px);padding:0;border:1px solid var(--atlas-line);border-radius:18px;background:var(--atlas-paper);color:var(--atlas-ink);box-shadow:0 20px 80px #20103955;overflow:auto;resize:both}.atlas-windowlet::backdrop{background:#21193777}.atlas-windowlet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;position:sticky;top:0;background:var(--atlas-paper);border-bottom:1px solid var(--atlas-line);z-index:1}.atlas-windowlet-head h2{font-size:1.3rem;margin:0}.atlas-windowlet-head button{flex-shrink:0;min-height:44px}.atlas-windowlet nav{display:flex;gap:8px;padding:12px 20px}.atlas-windowlet nav button{min-height:44px}.atlas-windowlet [aria-pressed=true]{background:var(--atlas-green);color:white}.atlas-windowlet-body{padding:4px 22px 24px;overflow-wrap:anywhere}.atlas-windowlet-body p{line-height:1.75}
@media(max-width:760px){.atlas-discover-controls{grid-template-columns:1fr}.atlas-discover-controls>*{grid-column:1!important;grid-row:auto!important}.atlas-discover-results{grid-template-columns:1fr}.atlas-now-grid{grid-template-columns:1fr}.atlas-now-grid article:last-child{grid-column:1}.atlas-money-controls{grid-template-columns:1fr 1fr}.atlas-money-controls label:nth-of-type(3){grid-row:3;grid-column:1/-1}.atlas-money-controls input{grid-row:4;grid-column:1/-1}.atlas-world-search{padding:16px}.earth-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px}.atlas-windowlet{resize:none}.atlas-windowlet-head{padding:12px}.atlas-windowlet-body{padding-inline:16px}.atlas-browse-shortcuts button{flex-grow:1}.atlas-place-sections{gap:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
