/* Local atlas skin: measured type and density, original game art and navigation. */
:root{
 color-scheme:light;
 --base:#f5f5f5;--chrome:#f5f5f5;--panel:#fff;--card:#fff;--ink:#2a2524;--muted:#635e58;
 --border:#e4e2df;--warm:#a53a14;--active:#b94414;--focus:#b94414;--button:#bd3c08;--button-ink:#fff;
 --row-line:#f0eeec;--hover:#f8f7f6;--selected:#fbefe7;--table-head:#f8f7f6;
 --surface-shadow:0 1px 2px #27201511,0 12px 24px -12px #2720152b;
 --ease-row:cubic-bezier(.23,1,.32,1);
 font-family:Geist,'PingFang HK','Microsoft JhengHei UI','Noto Sans TC',sans-serif;
 font-size:16px;line-height:1.5;
}
.atlas-edition{--soft:#f3f1ef;--control:#d1cdc8;--warn:#873714;--map-blue:#f0eeeb}
::selection{background:#f6dac9;color:var(--ink)}
input{caret-color:var(--warm)}
.atlas-edition .frame{width:min(1192px,100% - 48px)}
.atlas-edition .masthead{border-color:var(--border)}
.mast-inner{min-height:64px;padding-inline:28px}
.wordmark{gap:8px}
.wordmark .mark{width:25px;height:25px;color:#bf460e}
.wordmark b{font-weight:580}
.wordmark small{font-size:11px;margin-top:2px}
.mast-inner nav a{padding-inline:12px;color:var(--ink);font-size:15px;transition:none}
.mast-inner nav a:hover{background:transparent;color:var(--ink)}
.mast-inner nav a[aria-current]{background:#ebe9e7;color:var(--ink)}
@media(hover:hover){
 .mast-inner nav a:not([aria-current]):hover{background:#efedeb}
}
.mast-inner nav a .icon{width:15px;height:15px}
.local-tag{font-size:12px}
.footer{padding-block:16px;min-height:72px}

/* Directory and focused search */
#atlas-home.is-directory{padding-top:12px}
.is-directory .home-scene{
 min-height:424px;justify-content:center;margin-inline:12px;padding:58px 28px;text-align:center;
 background:var(--paper);border:1px solid var(--border);border-radius:12px;box-shadow:var(--surface-shadow);
}
.is-directory .home-lookup{width:min(100%,680px)}
.is-directory .home-lookup h1{font-size:56px;line-height:1.1;letter-spacing:-.02em;font-weight:500}
.is-directory .home-lookup>p{color:var(--muted);font-size:18px;line-height:1.45;max-width:none;margin:22px auto 30px}
.is-directory .finder-stack{max-width:450px;margin-inline:auto;text-align:start}
.home-lookup .finder{
 gap:10px;min-height:50px;padding:4px 5px 4px 14px;
 background:var(--paper);border:1px solid var(--control);border-radius:12px;box-shadow:0 1px 2px #2820180e;
}
.finder:focus-within{border-color:var(--active);outline:2px solid #b9441427}
.finder>.icon{width:18px;height:18px;color:#746d65}
.home-lookup .finder input{height:40px;font-size:15px}
.finder-submit{
 display:inline-flex;min-height:40px;height:auto;width:auto;gap:6px;padding-inline:11px;
 align-items:center;justify-content:center;border:1px solid #ad3908;border-radius:8px;
 background:linear-gradient(#ce470c,#b73908);color:var(--button-ink);font-size:14px;font-weight:600;white-space:nowrap;
}
.finder-submit .icon{width:14px;height:14px}
.finder-submit:hover,.map-action:hover,#atlas-subpage .primary:hover,#atlas-subpage .inspector-route:hover{background:#a6360b;color:#fff}
.finder .clear{height:40px;width:28px}
.finder .clear:hover{background:var(--hover)}
.home-examples{justify-content:center;margin-top:8px;gap:12px}
.home-examples button{color:var(--ink);text-decoration:none}
.home-examples button:hover{text-decoration:underline;color:var(--warm)}
#directory-suggestions:not([hidden]),.category-switch nav{box-shadow:var(--surface-shadow)}
#atlas-home.is-catalogue-page .home-scene{padding-top:5px}
.is-catalogue-page .home-lookup h1{font-size:40px;line-height:1.15;font-weight:500;letter-spacing:-.02em}
.is-catalogue-page .finder-submit span{display:none}
.is-catalogue-page .finder-submit{width:40px;padding-inline:0}
.is-catalogue-page .home-lookup .finder input{height:38px}
#catalogue-directory{gap:30px;margin-top:30px}
.directory-section h2{font-size:20px;font-weight:550;letter-spacing:-.015em}
.gear-doorways,.journey-doorways{
 gap:0;border:1px solid var(--border);border-radius:12px;background:var(--paper);
}
.gear-doorways .directory-door,.journey-doorways .directory-door{
 min-height:79px;align-items:center;padding:16px;gap:12px;overflow:visible;
 border:0;border-radius:0;background:transparent;
 transition:background-color 150ms var(--ease-row),color 150ms var(--ease-row);
}
.gear-doorways .directory-door{isolation:auto}
.gear-doorways .directory-door:first-child{border-radius:11px 0 0 11px}
.gear-doorways .directory-door:last-child{border-radius:0 11px 11px 0}
.gear-doorways .directory-door+.directory-door{border-inline-start:1px solid var(--border)}
.gear-doorways .directory-door .door-label{padding-inline-end:0}
.gear-doorways .directory-door>.icon:last-child,.journey-doorways .directory-door>.icon:last-child{
 position:static;width:16px;height:16px;color:#746d65;
}
.directory-door:focus-visible{z-index:1;outline-offset:-3px}
.door-label strong,.journey-links .door-label strong{font-size:16px;font-weight:550}
.door-label small,.door-map .door-label small{font-size:13px;color:var(--muted);margin-top:3px;line-height:1.4}
.door-sprite{--image-size:30px}
.door-symbol{width:30px;height:30px;border:1px solid var(--border);background:var(--hover);color:var(--ink)}
.door-symbol .icon{width:16px;height:16px}
.journey-doorways{grid-template-columns:minmax(0,1fr) minmax(0,2.45fr)}
.journey-doorways .door-map{border-inline-end:1px solid var(--border);border-radius:11px 0 0 11px}
.journey-links{gap:0}
.journey-links .directory-door:nth-child(even){border-inline-start:1px solid var(--border)}
.journey-links .directory-door:nth-child(1n+3){border-top:1px solid var(--border)}
.journey-links .directory-door:nth-child(2){border-top-right-radius:11px}
.journey-links .directory-door:nth-child(4){border-bottom-right-radius:11px}
@media(hover:hover){
 .gear-doorways .directory-door:hover,.journey-doorways .directory-door:hover{background:var(--hover);color:var(--ink)}
}

/* Catalogue: verified sprites and numeric comparisons, not decorative loot tiles. */
.is-catalogue-page .library-head{margin-bottom:10px}
.is-catalogue-page .library-head h2{font-size:17px;font-weight:550}
.category-switch [aria-current]{background:var(--selected);color:var(--warm)}
#equipment-filters{gap:4px;padding-block:4px 12px;border-top:none;margin-bottom:16px}
.equipment-families,.equipment-refinements{gap:4px}
.equipment-families button,.equipment-reset{font-size:14px;min-height:40px}
.equipment-families button[aria-pressed=true]{background:var(--selected);border-color:#ecd6c7;color:#983612;font-weight:565}
.equipment-refinements{gap:7px 16px}
.equipment-refinements select{min-height:38px;border-color:var(--control)}
.catalogue-library .layout:not(.layout--recipes,.layout--catalogue-list){grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:16px}
.equipment-table{
 width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;border:1px solid var(--border);
 border-radius:12px;background:var(--paper);box-shadow:var(--surface-shadow);
 color:var(--ink);font-size:14px;line-height:20px;
}
.equipment-table thead th{
 height:44px;background:var(--table-head);padding:10px 16px;text-align:start;
 border-bottom:1px solid var(--border);font-weight:500;line-height:14px;
}
.equipment-table thead th:first-child{width:42%;border-top-left-radius:11px}
.equipment-table thead th:nth-child(2){width:36%}
.equipment-table thead th:last-child{width:22%;border-top-right-radius:11px}
.equipment-table :is(thead th,td):last-child{text-align:end}
.equipment-table tbody tr{position:relative;transition:background-color 150ms var(--ease-row)}
.equipment-table tbody tr.is-selected{background:var(--selected)}
.equipment-table tbody tr:focus-within{background:var(--hover)}
.equipment-table tbody tr.is-selected:focus-within{background:var(--selected)}
@media(hover:hover){
 .equipment-table tbody tr:not(.is-selected):hover{background:var(--hover)}
}
.equipment-table tbody tr+tr>*{border-top:1px solid var(--row-line)}
.equipment-table tbody tr:last-child th{border-bottom-left-radius:11px}
.equipment-table tbody tr:last-child td:last-child{border-bottom-right-radius:11px}
.equipment-table tbody :is(th,td){height:61px;overflow-wrap:anywhere;padding:8px 16px;font-weight:400;text-align:start}
.equipment-table tbody th{padding:0}
.equipment-table .equipment-link{
 position:static;display:flex;align-items:center;gap:10px;min-height:60px;min-width:0;overflow:visible;
 border:0;border-radius:0;background:none;color:var(--ink);padding:10px 16px;text-align:start;
}
.equipment-link::after{content:"";position:absolute;inset:0;cursor:pointer}
.equipment-link:focus-visible{outline:none}
.equipment-link:focus-visible::after{outline:2px solid var(--focus);outline-offset:-3px;border-radius:5px}
.table-icon{--image-size:28px}
.table-name{min-width:0}
.table-name strong,.table-name small{display:block}
.table-name strong{font-size:14px;font-weight:540;line-height:20px}
.table-name[data-name-tier=white] strong{color:#484746}
.table-name[data-name-tier=gold] strong{color:#825511}
.table-name[data-name-tier=purple] strong{color:#733e98}
.table-name[data-name-tier=blue] strong{color:#205f87}
.table-name small{font-size:11px;line-height:15px;color:var(--muted)}
.table-stat{color:var(--muted)}
.stat-token{display:inline-block;white-space:nowrap}
.tier{gap:5px}
.tier::before{border-radius:2px;width:3px;height:12px;background:#a39a91}
.tier[data-tier=gold]::before{background:#b87a12}
.tier[data-tier=purple]::before{background:#8860b0}
.tier[data-tier=blue]::before{background:#457ead}
.record:not(.equipment-link),.record.spell-index-row{background:var(--paper);border-color:var(--border)}
.record:not(.equipment-link):hover,.record.spell-index-row:hover{background:var(--hover);border-color:var(--control)}
.record:not(.equipment-link).selected,.record.spell-index-row.selected{background:var(--selected);border-color:#e5c6b2}
.record-art,.record-art.terrain,.exhibit{background:#f2f0ed;border-bottom:1px solid var(--row-line)}
.record-art .tier,.photo-label{background:var(--paper);color:var(--muted);border-radius:5px;padding:2px 6px}
.record-caption>span:nth-child(2),.record>.icon:last-child{color:var(--muted)}
.entry-sheet{border-color:var(--border);border-radius:12px;box-shadow:var(--surface-shadow)}
.entry-body h2{font-weight:550}
.entry-category>span+span{border-color:var(--border)}
.entry-values dd{font-weight:550}
.exhibit.has-landscape::before,.exhibit.terrain::before{content:none}
.exhibit.sprite>img:not(.exhibit-background){filter:drop-shadow(0 3px 7px #2820182b)}
.recipe-sequence a{background:var(--table-head);border-color:var(--border)}
.recipe-sequence a:hover,.recipe-sequence a:focus-visible{background:var(--selected);border-color:#e5c6b2}
.map-action{font-weight:550}
#paging button:not(:disabled):hover{border-color:var(--control);background:var(--hover)}

/* The tools around the maps match the catalogue. The map pixels and route strokes are untouched. */
#atlas-subpage :is(.world-inspector,.world-local-info,.map-panel,.world-directory){border-color:var(--border)}
#atlas-subpage .world-shell{--map-label:#fff;--map-route:#ad3b0b}
#atlas-subpage .world-stage{border:1px solid var(--border)}
#atlas-subpage .world-regions a[aria-current],#atlas-subpage .atlas-view .floor-rail button[aria-current=step]{background:var(--selected);color:var(--warm);border-color:#e5c6b2}
#atlas-subpage .world-stage .pin-disc,#atlas-subpage .world-stage .pin-name,#atlas-subpage .atlas-view .pin-label{background:var(--paper);color:var(--ink);border-color:var(--control)}
#atlas-subpage .world-stage .world-pin.route .pin-disc{background:var(--button);color:#fff;border-color:#fff}
#atlas-subpage .world-stage .pin-dojo .pin-name{background:var(--selected);border-color:#e5c6b2}
#atlas-subpage .world-stage :is(.pin-dojo[aria-expanded=true],.world-pin.is-focused:not(.is-cluster)) .pin-disc{border-color:#fff;outline-color:var(--focus)}
#atlas-subpage .world-stage .world-pin:focus-visible{outline-color:var(--focus)}
#atlas-subpage .atlas-view .stage{border-block:1px solid var(--border)}
#atlas-subpage .atlas-view .zoom-readout{background:var(--paper);color:var(--ink);border:1px solid var(--border);border-radius:5px}
#atlas-subpage .atlas-view .pin-label{border:1px solid var(--border);border-radius:4px}
#atlas-subpage .atlas-view .pin-mark{background:var(--paper);color:var(--ink);border-color:#7e6d5d}
#atlas-subpage .atlas-view .pin[data-role=exit] .pin-mark{background:#994019;color:#fff;border-color:#fff}
#atlas-subpage .atlas-source-maps[data-map-layer=archive] .key-route{background:#bd8d18}
#atlas-subpage .atlas-paired-route .map-key{padding-block:4px;min-height:48px}
#atlas-subpage .atlas-paired-route .route-toggle{margin-inline-start:auto;padding-inline:8px;border-radius:6px}
#atlas-subpage .atlas-paired-route .map-key:has(.route-toggle:not([hidden])) .key-hint{margin-inline-start:0}
#atlas-subpage .atlas-paired-route .stage:has(.map-error:not([hidden])) :is(#route-layer,#pins){visibility:hidden}
#atlas-subpage .atlas-paired-route :is(.route-under,.route-top){stroke-linecap:butt}
#atlas-subpage .atlas-paired-route .route-under{stroke-width:5.6}
#atlas-subpage .atlas-paired-route .route-top{stroke-width:2.8}
@media (hover:hover){#atlas-subpage .atlas-paired-route .route-toggle:hover{background:var(--soft)}}
#atlas-subpage .inspector-route :is(small,.icon){color:#fff}
#atlas-subpage .status:is([data-status=conflict],[data-status=partial]){background:var(--selected);color:var(--warn)}
#atlas-subpage :is(.page-head,.detail-title) h1{font-weight:500}
#atlas-subpage .record-list{border-radius:12px}
.world-map-links{display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap}
.world-map-links a{white-space:nowrap}
#atlas-subpage .world-stage .world-pin.archive .pin-disc{background:var(--selected);color:var(--warm);border:2px solid var(--active)}
#atlas-subpage .atlas-guide-maps .floor-rail ol{max-height:550px;overflow:auto;padding-inline-end:5px}
#atlas-subpage .atlas-guide-maps .floor-rail button{overflow-wrap:anywhere}
#atlas-subpage .atlas-guide-maps #map-image{image-rendering:pixelated}
#atlas-subpage .atlas-griffin[data-map-layer=terrain] #map-image{image-rendering:auto}
#atlas-subpage .atlas-passage[data-map-layer=terrain] #map-image{image-rendering:auto}
#atlas-subpage .atlas-passage[data-map-layer=archive] .key-route{background:#da4c37}
#atlas-subpage .atlas-passage .pin-mark .icon{width:14px;height:14px}
#atlas-subpage .atlas-passage .workspace{grid-template-columns:minmax(0,1fr) minmax(210px,245px)}
@media (max-width:1000px){
 #atlas-subpage .atlas-passage .workspace{grid-template-columns:minmax(0,1fr)}
 #atlas-subpage .atlas-passage .details{grid-column:1;display:block}
}
@media (max-width:650px){#atlas-subpage .atlas-passage .map-controls{flex-direction:row}}
.atlas-griffin .endpoint[data-next-floor]{grid-template-columns:36px minmax(0,1fr) auto}
.atlas-griffin .transfer-cue{color:var(--accent);padding-inline:4px}
.dungeon-directory{max-width:880px}
.dungeon-filter{display:flex;flex-wrap:wrap;gap:10px 16px;margin-bottom:16px}
.dungeon-filter label{display:grid;gap:5px;font-size:13px;color:var(--muted)}
.dungeon-filter label:first-child{flex:1;min-width:min(100%,235px)}
.dungeon-filter :is(input,select){width:100%;min-height:44px;padding:7px 10px;border:1px solid var(--control);background:var(--paper);color:var(--ink)}
.dungeon-filter input{font-size:16px}
.dungeon-list,.dungeon-gaps ul{margin:0;padding:0;list-style:none}
.dungeon-list,.dungeon-empty,.dungeon-gaps{background:var(--paper);border:1px solid var(--border);border-radius:12px}
.dungeon-list li+li,.dungeon-gaps li{border-top:1px solid var(--row-line)}
.dungeon-list a{display:grid;grid-template-columns:68px minmax(0,1fr) auto 16px;align-items:center;gap:12px;min-height:67px;padding:8px 16px;color:var(--ink)}
.dungeon-list li:first-child a{border-radius:11px 11px 0 0}
.dungeon-list li:last-child a{border-radius:0 0 11px 11px}
.dungeon-list img{width:68px;height:44px;object-fit:contain;background:#272523;border-radius:5px}
.dungeon-list a:focus-visible{outline-offset:-3px}
.dungeon-row-name{min-width:0;overflow-wrap:anywhere;font-size:14px}
.dungeon-row-name strong{display:block;font-weight:580}
.dungeon-row-name small{font-size:12px;color:var(--muted)}
.dungeon-mark{white-space:nowrap;font-size:12px;color:var(--muted)}
.dungeon-mark[data-mark=route]{color:var(--warm)}
.dungeon-list a>.icon,.dungeon-gaps .icon{width:14px;height:14px}
.dungeon-empty,.dungeon-gaps li{padding:12px 16px;font-size:14px}
.dungeon-empty,.dungeon-gaps li p{color:var(--muted)}
.dungeon-gaps{margin-bottom:16px}
.dungeon-gaps summary{padding:12px 16px;cursor:pointer;font-size:14px}
.dungeon-gaps summary span{float:inline-end;color:var(--muted)}
.dungeon-gaps li p{margin:3px 0 0}
.dungeon-gaps li a{display:inline-flex;align-items:center;min-height:44px;margin-inline-end:16px;color:var(--warm);font-size:13px;text-decoration:underline;text-underline-offset:3px}
@media(hover:hover){
 #atlas-subpage .record-row{transition:background-color 150ms var(--ease-row)}
 #atlas-subpage .record-row:hover{background:var(--hover)}
 .dungeon-list a{transition:background-color 150ms var(--ease-row)}
 .dungeon-list a:hover{background:var(--hover)}
}
.atlas-edition #image-dialog::backdrop{background:#29211eaa}

@media(max-width:820px){
 .atlas-edition .frame{width:calc(100% - 36px)}
 .mast-inner{padding-inline:0}
 .catalogue-library .layout:not(.layout--recipes,.layout--catalogue-list){grid-template-columns:minmax(0,1fr)}
 .catalogue-library .entry-sheet{scroll-margin-top:12px}
 .journey-doorways{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
}
@media(max-width:600px){
 .atlas-edition .frame{width:calc(100% - 28px)}
 .mast-inner{min-height:58px}
 .mast-inner nav{gap:2px}
 .mast-inner nav a{font-size:13px;padding-inline:8px}
 .wordmark{gap:5px}
 .wordmark b{font-size:14px}
 .wordmark .mark{width:22px;height:22px}
 .is-directory .home-scene{min-height:312px;margin-inline:0;padding:35px 14px 24px}
 .is-directory .home-lookup h1,.is-catalogue-page .home-lookup h1{font-size:32px}
 .is-directory .home-lookup>p{max-width:19em;margin-block:16px 22px;font-size:15px;line-height:1.5}
 .is-directory .finder{padding-inline-start:9px;gap:6px}
 .is-directory .finder input{font-size:16px}
 .finder-submit{padding-inline:8px;font-size:13px}
 .finder-submit .icon{width:12px}
 .home-examples{font-size:12px;gap:8px}
 #catalogue-directory{margin-top:24px;gap:24px}
 .gear-doorways,.journey-doorways,.journey-links{grid-template-columns:minmax(0,1fr)}
 .gear-doorways .directory-door,.journey-doorways .directory-door{min-height:65px;padding:10px 13px;gap:10px}
 .gear-doorways .directory-door:first-child,.journey-doorways .door-map{border-radius:11px 11px 0 0}
 .gear-doorways .directory-door:last-child,.journey-links .directory-door:nth-child(4){border-radius:0 0 11px 11px}
 .journey-doorways .door-map,.journey-links .directory-door:nth-child(2){border-inline:0}
 .journey-links .directory-door:nth-child(2){border-radius:0}
 .gear-doorways .directory-door+.directory-door,.journey-links .directory-door:nth-child(even){border-inline:0}
 .gear-doorways .directory-door+.directory-door,.journey-links .directory-door{border-top:1px solid var(--border)}
 .door-label strong,.journey-links .door-label strong{font-size:15px}
 .equipment-families button{min-width:38px;min-height:42px;font-size:13px}
 .equipment-table{font-size:12px;line-height:16px}
 .equipment-table thead th{padding:8px 6px;line-height:16px}
 .equipment-table tbody :is(th,td){padding-inline:6px}
 .equipment-table tbody th{padding:0}
 .equipment-table .equipment-link{gap:6px;padding-inline:7px}
 .table-icon{--image-size:21px}
 .table-name strong{font-size:13px;line-height:17px}
 .table-name small,.equipment-table .tier{font-size:11px;line-height:15px}
 .equipment-table .tier{gap:3px}
 .world-toolbar:has(.world-archive-link){flex-wrap:wrap;gap:4px 9px}
 .world-map-links{gap:6px 14px}
 .world-map-links a{display:inline-flex}
 .dungeon-list a{grid-template-columns:46px minmax(0,1fr) auto 12px;gap:7px;padding-inline:8px}
 .dungeon-list img{width:46px;height:35px}
 .dungeon-mark{font-size:11px}
}
@media(max-width:360px){
 .is-directory .finder-submit span{display:none}
 .is-directory .finder-submit{width:40px}
 .table-icon{--image-size:18px}
 .equipment-table thead th,.equipment-table tbody td{padding-inline:4px}
}
.entry-body .equipment-supplementary{margin-block:18px;min-width:0}
.entry-body .equipment-supplementary h3{font-size:14px;margin:0 0 8px}
.entry-body .equipment-supplementary dd,.entry-body .entry-values dd{overflow-wrap:anywhere}
#atlas-subpage .catalogue-item-summary{min-width:0}
#atlas-subpage .catalogue-item-leaf.no-art{grid-template-columns:minmax(0,1fr)}
#atlas-subpage .catalogue-item-leaf .equipment-supplementary{grid-column:1/-1;min-width:0}
#atlas-subpage .equipment-supplementary h2{font-size:16px;margin:0 0 8px}
#atlas-subpage .catalogue-item-leaf h1,#atlas-subpage .catalogue-item-values dd{overflow-wrap:anywhere}
#atlas-subpage .catalogue-item-values>div{min-width:0;max-width:100%}
#atlas-subpage .equipment-no-art{font-size:13px;color:var(--muted)}
