/* A browser counterpart of the M map: the same shapes, palette and fixed-size radar glyphs. */
.atlas-page .wrap { width: min(1480px, 100% - 48px); }
.atlas { padding-block: 36px 24px; }
.atlas-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.atlas-heading h1 { font-size: clamp(30px, 3.3vw, 48px); margin-top: 6px; }
.atlas-heading > p { color: var(--muted); }
.atlas-eyebrow { color: var(--accent); font-size: 14px; letter-spacing: .1em; }
.atlas-worlds { display: flex; gap: 2px; border-bottom: 1px solid var(--edge); background: var(--bar); }
.atlas button, .atlas input { font: inherit; }
.atlas button { cursor: pointer; }
.atlas-worlds button { background: transparent; color: var(--muted); border: 0; border-bottom: 3px solid transparent; padding: 15px 24px; font-size: 20px; font-weight: 700; }
.atlas-worlds button[aria-pressed="true"] { color: var(--text); background: var(--panel2); border-color: var(--accent); }
.atlas-worlds button:hover { color: var(--text); }
.atlas-worlds span { font-size: 12px; text-transform: uppercase; margin-left: 10px; color: var(--muted); }
.atlas-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--edge); border-top: 0; }
.atlas-layout[hidden] { display: none; }
.atlas-sidebar { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--edge); max-height: 800px; }
.atlas-search { padding: 20px 20px 12px; }
.atlas-search label, .atlas-filters legend { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.atlas-search input { width: 100%; min-height: 44px; padding: 9px 12px; margin-top: 8px; color: var(--text); background: var(--page); border: 1px solid #454552; border-radius: 0; }
.atlas-search input::placeholder { color: var(--muted); opacity: 1; }
.atlas-filters { border: 0; padding: 0 20px 16px; margin: 0; }
.atlas-filters legend { margin-bottom: 8px; }
.atlas-filters > div { display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-filter { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 15px; padding: 5px 7px; background: var(--panel2); }
.atlas-filter input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.atlas-filter .atlas-symbol { width: 15px; height: 15px; }
.atlas-symbol { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--marker-color); }
.atlas-symbol.job { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.atlas-symbol.activity { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.atlas-symbol.service { border-radius: 5px; }
.atlas-symbol img { width: 19px; height: 19px; object-fit: contain; image-rendering: pixelated; }
.atlas-detail { border-block: 1px solid var(--edge); padding: 18px 20px; background: var(--bar); }
.atlas-detail h2 { font-size: 23px; line-height: 1.15; margin: 6px 0 9px; }
.atlas-detail > p:not(.atlas-eyebrow) { color: var(--muted); font-size: 16px; }
.atlas-detail .atlas-share { display: inline-block; color: var(--accent); margin-top: 10px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.atlas-detail small { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }
.atlas-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px 4px; }
.atlas-results-heading h2 { font-size: 19px; }
.atlas-results-heading button { color: var(--accent); background: none; border: 0; padding: 4px; font-size: 14px; }
.atlas-count { padding: 0 20px 8px; color: var(--muted); font-size: 14px; }
.atlas-results { list-style: none; padding: 0 10px 12px; margin: 0; overflow: auto; min-height: 100px; flex: 1; scrollbar-color: #454552 var(--panel); }
.atlas-result { display: flex; gap: 12px; width: 100%; align-items: center; text-align: left; border: 0; background: transparent; color: var(--text); padding: 10px; }
.atlas-result:hover, .atlas-result[aria-pressed="true"] { background: var(--panel2); }
.atlas-result[aria-pressed="true"] { box-shadow: inset 2px 0 var(--accent); }
.atlas-result span:last-child { min-width: 0; }
.atlas-result b { display: block; font-size: 17px; line-height: 1.15; font-weight: 600; }
.atlas-result small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.atlas-empty { color: var(--muted); font-size: 16px; padding: 12px 10px; }
.atlas-map-column { min-width: 0; }
.atlas-world-info { min-height: 85px; padding: 18px 24px; }
.atlas-world-info h2 { font-size: 23px; margin-bottom: 5px; }
.atlas-world-info p { color: var(--muted); font-size: 15px; }
.atlas-viewport { position: relative; height: clamp(420px, 62vh, 660px); overflow: hidden; isolation: isolate; touch-action: none; cursor: grab; background: #4687a5; }
.atlas-viewport:active { cursor: grabbing; }
.atlas-viewport:focus-visible { outline-offset: -3px; }
.atlas-viewport canvas, .atlas-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-markers { pointer-events: none; }
.atlas-marker { position: absolute; pointer-events: auto; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 2px #000b); }
.atlas-marker:hover, .atlas-marker:focus-visible, .atlas-marker.selected { z-index: 2; filter: drop-shadow(0 0 4px #fff); }
.atlas-marker.selected::after { content: ''; position: absolute; inset: -4px; border: 2px solid white; border-radius: 50%; }
.atlas-cluster-count { position: absolute; right: -5px; bottom: -1px; min-width: 19px; height: 19px; padding-inline: 3px; background: var(--bar); border: 1px solid #ffffff90; border-radius: 10px; color: white; font-size: 12px; font-weight: 700; line-height: 17px; }
.atlas-controls { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; gap: 2px; }
.atlas-controls button { width: 42px; height: 42px; background: var(--bar); color: var(--text); border: 1px solid #ffffff30; font-size: 27px; line-height: 1; }
.atlas-controls button:hover { background: var(--panel2); color: var(--accent); }
.atlas-controls button:disabled { opacity: .5; cursor: default; }
.atlas-compass { position: absolute; top: 18px; left: 20px; color: white; text-shadow: 0 1px 4px black; text-align: center; font-size: 14px; pointer-events: none; }
.atlas-compass span { display: block; font-size: 25px; line-height: 1; }
.atlas-map-status { position: absolute; inset: auto 20px 20px; padding: 10px 14px; background: var(--bar); border-left: 3px solid var(--accent); font-size: 16px; pointer-events: none; }
.atlas-map-status:empty { display: none; }
.atlas-tooltip { position: absolute; z-index: 5; max-width: min(280px, 80%); padding: 8px 12px; background: var(--bar); color: white; border-left: 3px solid var(--accent); pointer-events: none; font-size: 16px; box-shadow: 0 3px 10px #0004; }
.atlas-tooltip[hidden] { display: none; }
.atlas-map-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--edge); color: var(--muted); font-size: 13px; }
.atlas-map-foot output { color: var(--text); white-space: nowrap; }
.atlas-snapshot { padding: 12px 20px; color: var(--muted); font-size: 13px; }
.atlas-load { padding: 32px 0; }
.atlas-load a { text-decoration: underline; }
@media (min-width: 1600px) { .atlas-sidebar { max-height: 840px; } }
@media (max-width: 1000px) {
	.atlas-page .wrap { width: calc(100% - 32px); }
	.atlas-layout { grid-template-columns: 270px minmax(0, 1fr); }
	.atlas-heading > p { max-width: 240px; font-size: 16px; }
}
@media (max-width: 720px) {
	.atlas { padding-top: 24px; }
	.atlas-heading { display: block; margin-bottom: 20px; }
	.atlas-heading > p { max-width: none; margin-top: 12px; }
	.atlas-heading br { display: none; }
	.atlas-worlds button { flex: 1; padding: 12px 8px; font-size: 16px; }
	.atlas-worlds span { display: block; font-size: 10px; margin: 2px 0 0; }
	.atlas-layout { display: flex; flex-direction: column; }
	.atlas-map-column { order: -1; }
	.atlas-viewport { height: min(62svh, 520px); min-height: 320px; }
	.atlas-world-info { padding: 16px; }
	.atlas-sidebar { border-right: 0; border-top: 1px solid var(--edge); max-height: none; }
	.atlas-results { max-height: 300px; }
	.atlas-map-foot { padding: 10px 14px; }
	.atlas-snapshot { padding: 10px 14px; }
}
