
/* Match the profile dialog's paper, typography, and brass accents. */
dialog.reader-page-jump.book-map{
 width:min(560px,calc(100vw - 28px));padding:24px clamp(18px,4vw,40px) 26px;
 background:radial-gradient(ellipse at 35% 0,#fff6dd,#e5d5b3);border-color:#a98c57;border-radius:14px;
 color:#443323;box-shadow:0 30px 100px #000a;color-scheme:light;
}
dialog.book-map::backdrop{background:#15130fd9;backdrop-filter:blur(5px)}
dialog.book-map .book-map-heading{display:grid;justify-content:center;justify-items:center;text-align:center;gap:12px;padding:0 40px;margin:0 0 11px}
.book-map-heading .book-map-hero{position:relative;width:92px;height:92px;border-radius:50%;overflow:hidden;box-shadow:0 4px 14px #6f4c263f}
.book-map-heading .book-map-hero img,.book-map-hero svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.book-map-heading .book-map-hero img{border:0;box-shadow:none}
.book-map-heading p{color:#785c32;letter-spacing:.25em;margin:0 0 7px}
dialog.book-map #page-jump-title{font:500 38px/1.05 'Cormorant Garamond',Georgia,serif;color:#443323}
.book-map .book-map-location{text-align:center;color:#5a432c;border-color:#93704355;margin-bottom:14px}
.book-map-location span:first-child{color:#8c672f}
.book-map h3,.book-map form label{color:#60492e}
.book-map .page-jump-shortcuts button,.book-map form input{background:#fff8e9;color:#3f3022;border-color:#a98c57}
.book-map .page-jump-shortcuts span{color:#684b25;border-color:#a98c57}
.book-map .page-jump-shortcuts button:hover{background:#f6e9c9}
.book-map form button{background:#49351f;color:#fff5dd;border-color:#8d7046}
.book-map form button:hover{background:#5c422b}
.book-map #book-map-range,.book-map #page-jump-sharing{color:#665139}
.book-map #page-jump-error{color:#842b20}
dialog.reader-dismissable.book-map>button[data-jump="close"].reader-dialog-close{margin-inline-end:-10px;border-color:#927444;background:#fff5dd;color:#49351f}
dialog.book-map :is(button,input):focus-visible{outline-color:#704b20}
@media(max-height:550px){
 dialog.reader-page-jump.book-map{padding:12px 17px}
 .book-map-heading .book-map-hero{width:54px;height:54px}
 dialog.book-map .book-map-heading{gap:6px;margin-bottom:4px}
 dialog.book-map #page-jump-title{font-size:31px}
 .book-map .book-map-location{margin-bottom:8px;padding-block:4px 5px}
 .book-map form{margin:9px 0 6px}
}


/* The modal crest shares the trigger's viewport anchor and responsive diameter. */
dialog.reader-page-jump.book-map{
 --map-compass-size:clamp(68px,9vw,92px);
 position:fixed;inset:0 0 auto;margin:0 auto;max-height:calc(100dvh - 8px - env(safe-area-inset-bottom,0px));
 padding-top:calc(var(--shared-top) - 1px);scrollbar-width:thin;scrollbar-gutter:stable both-edges;
}
dialog.book-map .book-map-hero{width:var(--map-compass-size);height:var(--map-compass-size);border:1px solid #b49c65}
body:has(.book-map[open]) #living>.reader-compass{visibility:hidden}
.book-map-folio-notes{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:0 12px}
.book-map .book-map-folio-notes .book-map-location{padding:0;border:0;margin:6px 0 0;text-align:start}
@media(max-height:500px){dialog.reader-page-jump.book-map{--map-compass-size:68px}}@media(min-height:551px) and (min-width:850px){dialog.reader-dismissable.book-map>button[data-jump="close"].reader-dialog-close{margin-inline-end:-22px}}
