/* The title and atlas share a permanent layout; only their presentation moves. */
.catalog-page .atlas-panel{position:relative;border:0;background:transparent;padding:0;margin:0}
.catalog-page .book-heading{z-index:2;padding:24px 0 12px;pointer-events:none;transform-origin:50% 50%}
.catalog-page .book-heading h1{margin:4px 0 8px;font-size:clamp(30px,4.5vw,54px);line-height:1.4;white-space:nowrap}
.catalog-page .book-heading h1 .title-character{display:inline-block;font-size:1em;margin:0;color:var(--ink)}
.catalog-page .book-heading h1 .title-and{font-size:.63em;margin:0 .22em;color:var(--muted)}
.catalog-page .book-heading .eyebrow{margin:0 0 12px}
.catalog-page .book-deck{margin:10px 0 0;font-size:15px}
.catalog-page .catalog-map{max-width:850px}
.catalog-page .atlas-heading{padding:0 0 6px;min-height:44px}
.atlas-heading-actions{display:flex;align-items:center;gap:18px}
.atlas-heading #arrival-replay{color:var(--muted);font-size:12px}
.atlas-heading #arrival-skip{display:none;color:var(--red)}
.atlas-heading button[hidden]{display:none}
.catalog-page .atlas-caption{padding:12px 0 14px}
.catalog-page .atlas-regions summary{padding:12px 0}
.catalog-page .atlas-search{margin:10px auto 30px}
.catalog-page :is(.catalog-filters,.atlas-search) input:focus-visible{outline:2px solid var(--green);outline-offset:-2px;border-color:var(--green)}
.arrival-swarm{position:absolute;inset:0;pointer-events:none;z-index:2}
.arrival-thumbnail{position:absolute;width:64px;aspect-ratio:128/88;pointer-events:none;background-image:var(--arrival-sheet);background-size:var(--arrival-sheet-size);background-repeat:no-repeat;border-radius:3px;box-shadow:0 2px 7px #263b3429;transform:translate(-50%,-50%)}
.catalog-page #book-catalog>.section-heading{margin-top:24px}
html[data-arrival="pending"] .book-heading :is(.eyebrow,.title-character,.book-deck),
html[data-arrival="pending"] :is(.arrival-chrome,.atlas-marker){opacity:0}
html[data-arrival="pending"] .catalog-map>svg{opacity:.12}
html:is([data-arrival="pending"],[data-arrival="preparing"],[data-arrival="playing"]) #arrival-skip{display:inline-block}
html:is([data-arrival="pending"],[data-arrival="preparing"],[data-arrival="playing"]) #arrival-replay{display:none}
html[data-arrival="playing"] .book-heading{will-change:transform}
/* Restored dialogs are already part of the reader's location, not a new reveal. */
.atlas-results[data-restored][open]{animation:none}
@media(min-width:761px) and (max-height:850px){
 .catalog-page .catalog-map{max-width:660px}
 .catalog-page .book-heading{padding-top:16px}
 .catalog-page .book-heading h1{font-size:44px}
 .catalog-page .atlas-marker{font-size:10px;min-height:24px;padding:2px 5px;gap:3px}
}
@media(max-width:760px){
 .catalog-page .book-heading{padding:28px 0 18px}
 .catalog-page .book-heading h1{font-size:clamp(28px,6.7vw,42px);letter-spacing:.015em}
 .catalog-page .book-deck{font-size:13px}
 .catalog-page .catalog-map{margin-inline:-12px;width:calc(100% + 24px);max-width:none}
 .atlas-heading-actions{gap:12px}
 .catalog-page .atlas-search{margin:12px 0 24px}
 .catalog-page .atlas-search input{font-size:16px}
 .arrival-thumbnail{width:44px}
}
@media(prefers-reduced-motion:reduce){
 #arrival-replay,#arrival-skip{display:none!important}
 html[data-arrival] .book-heading{transform:none!important}
 html[data-arrival] :is(.title-character,.book-deck,.arrival-chrome,.atlas-marker,.catalog-map>svg){opacity:1!important}
}
