.atlas-heading {
   margin: 1.2rem 0 .8rem;
   }
.map-index {
   max-height: 13rem;
   overflow: auto;
   padding: .2rem;
   align-content: start;
   }
.atlas-viewer {
   scroll-margin-top: 5.5rem;
   }
.atlas-heading h2 {
   margin-bottom: .3rem;
   }
.atlas-heading p {
   margin: .2rem 0 .8rem;
   color: var(--muted);
   }
.atlas-body {
   display: grid;
   grid-template-columns: minmax(0, 1fr) 20rem;
   gap: 1rem;
   align-items: start;
   }
.atlas-frame {
   overflow: auto;
   max-height: 76vh;
   min-width: 0;
   background: #fffdf6;
   border: 1px solid #b8b4a2;
   border-radius: .6rem;
   }
.atlas-paper {
   position: relative;
   }
.atlas-sheet {
   position: absolute;
   inset: 0 auto auto 0;
   transform-origin: top left;
   }
.atlas-sheet img {
   display: block;
   max-width: none;
   border-radius: 0;
   }
.atlas-hit {
   position: absolute;
   transform: translate(-50%, -50%);
   width: 30px;
   height: 26px;
   min-height: 0;
   padding: 0;
   background: transparent;
   border: 1px solid transparent;
   border-radius: 5px;
   cursor: pointer;
   }
.atlas-hit:hover, .atlas-hit:focus-visible, .atlas-hit.is-selected {
   border: 2px solid #b44f31;
   outline: 2px solid #fffdf6;
   background: #f9dd8d44;
   }
.atlas-side {
   min-width: 0;
   }
.atlas-side h3 {
   margin-top: 0;
   }
.atlas-legend {
   font-size: .85rem;
   line-height: 1.7;
   }
.atlas-points {
   list-style: none;
   padding: 0;
   margin: .6rem 0;
   display: grid;
   gap: .6rem;
   }
.atlas-points li {
   border: 1px solid var(--line, #c5c4b9);
   border-radius: .5rem;
   padding: .55rem;
   overflow-wrap: anywhere;
   }
.atlas-points li.is-selected {
   background: var(--soft, #f3edda);
   outline: 2px solid #b78850;
   }
.atlas-point-button {
   display: block;
   width: 100%;
   min-height: 44px;
   text-align: left;
   color: var(--ink);
   background: transparent;
   border: 0;
   padding: .2rem 0;
   font: inherit;
   font-weight: 700;
   cursor: pointer;
   }
.atlas-points p {
   font-size: .9rem;
   margin: .4rem 0;
   }
.atlas-points a {
   display: block;
   font-size: .88rem;
   padding: .3rem 0;
   color: var(--link, #23659a);
   text-decoration: underline;
   }
.atlas-story {
   display: inline-block;
   margin: .8rem 0;
   }
.map-floor-buttons {
   display: flex;
   flex-wrap: wrap;
   gap: .4rem;
   }
.map-floor-buttons [aria-current="true"], .map-index-button[aria-current="true"] {
   outline: 2px solid #b78850;
   outline-offset: 1px;
   }
.map-index-button strong, .map-index-button small {
   display: block;
   }
@media (max-width: 900px) {
   .atlas-body {
     grid-template-columns: 1fr;
     }
   .atlas-frame {
     max-height: 65vh;
     }
   .atlas-points {
     grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
     }
   }
@media print {
   .atlas-body {
     display: block;
     }
   .atlas-frame {
     overflow: visible;
     max-height: none;
     border: 0;
     }
   .atlas-paper {
     width: 100% !important;
     height: auto !important;
     }
   .atlas-sheet {
     position: static;
     width: 100% !important;
     height: auto !important;
     transform: none !important;
     }
   .atlas-sheet img {
     width: 100%;
     height: auto;
     max-width: 100%;
     }
   .atlas-hit {
     display: none;
     }
   .atlas-side {
     margin-top: 1rem;
     }
   .atlas-points {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     }
   .atlas-point-button {
     color: #222;
     }
   .map-controls, .map-index, .map-floor-buttons {
     display: none;
     }
   }
