.yy-atlas,
.yy-atlas-reading {
  --atlas-paper: #e7e2d2;
  --atlas-ink: #25382f;
  --atlas-sans: "PingFang SC", "Noto Sans CJK SC", sans-serif;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--atlas-ink);
  color-scheme: light;
  background: var(--atlas-paper);
  font: 400 14px/1.5 "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  letter-spacing: normal;
}
.yy-atlas[open] {
  display: grid;
  grid-template-rows: minmax(78px, min(155px, 22svh)) minmax(0, 1fr) min(58px, 10svh);
  animation: yy-atlas-open .45s ease-out both;
}
@keyframes yy-atlas-open { from { opacity: 0; } to { opacity: 1; } }
.yy-atlas::backdrop, .yy-atlas-reading::backdrop { background: #07110fe0; }
.yy-atlas button, .yy-atlas-reading button {
  font: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.yy-atlas button:disabled { opacity: .25; cursor: default; }
.yy-atlas :is(button, a, canvas):focus-visible, .yy-atlas-reading button:focus-visible {
  outline: 1px solid #526e59;
  outline-offset: -2px;
}
.yy-atlas .book-header, .yy-atlas-reading .book-header {
  position: relative;
  inset: auto;
  height: auto;
  width: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: var(--atlas-paper);
  border-bottom: 1px solid #8e977840;
}
.yy-atlas .book-header .eyebrow, .yy-atlas-reading .book-header .eyebrow {
  display: block;
  color: #707e64;
  margin: 0 0 12px;
  font: 9px/1.5 var(--atlas-sans);
  letter-spacing: .36em;
}
.yy-atlas .book-header h2, .yy-atlas-reading .book-header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 400;
  letter-spacing: .24em;
}
.yy-atlas .close-button, .yy-atlas-reading .close-button {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 4px;
  font-size: 11px;
  letter-spacing: .25em;
  white-space: nowrap;
}
.yy-atlas .close-button:hover, .yy-atlas-reading .close-button:hover { color: #7b6d39; }
.yy-atlas .close-button span, .yy-atlas-reading .close-button span { font: 200 24px/1 var(--atlas-sans); }

.yy-atlas .catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 19fr) minmax(0, 47fr) minmax(0, 34fr);
  min-height: 0;
  height: auto;
  padding: clamp(16px, 4svh, 33px) 5% 12px;
}
.yy-atlas .catalog-list, .yy-atlas .catalog-copy {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #afb397 transparent;
}
.yy-atlas .catalog-list { padding: 0 30px 10px 0; }
.yy-atlas .catalog-list button {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 41px;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid #89927744;
  text-align: left;
  font-size: 13px;
  letter-spacing: .2em;
  color: #68765d;
}
.yy-atlas .catalog-list .list-id {
  flex: 0 0 auto;
  font: 9px/1 var(--atlas-sans);
  letter-spacing: .1em;
  opacity: .72;
}
.yy-atlas .catalog-list button:is(.active, [aria-current="true"], :hover) { color: #183b30; }
.yy-atlas .catalog-list button:is(.active, [aria-current="true"]) .list-id { opacity: 1; }

.yy-atlas .catalog-art {
  position: relative;
  display: grid;
  grid-template-areas: "media" "place" "controls";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: stretch;
  justify-items: center;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 0 12px 5px;
  overflow: hidden;
  border-inline: 1px solid #929a7a33;
}
.yy-atlas .catalog-art::after {
  content: "";
  position: absolute;
  bottom: 7%;
  left: 10%;
  right: 10%;
  height: 20%;
  border-radius: 50%;
  background: #8a917b1c;
  filter: blur(20px);
  pointer-events: none;
}
.yy-atlas .art-folio {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 16px;
  font: 9px/1.5 var(--atlas-sans);
  color: #707e64;
  letter-spacing: .24em;
  pointer-events: none;
}
.yy-atlas .catalog-media {
  grid-area: media;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 5px min(6%, 26px) 0;
}
.yy-atlas .catalog-media img.catalog-figure {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.yy-atlas .catalog-media .stone-cutout { --stone-height: 43svh; max-height: 100%; max-width: 100%; }
.yy-atlas .catalog-media canvas {
  display: block;
  min-height: 0;
  width: 100%;
  flex: 1 1 0;
  touch-action: none;
  cursor: grab;
}
.yy-atlas .catalog-media canvas:active { cursor: grabbing; }
.yy-atlas .catalog-media-hint {
  flex: 0 0 auto;
  margin: 3px 0 5px;
  text-align: center;
  color: #536b5d;
  font-size: 10px;
  letter-spacing: .12em;
}
.yy-atlas .place-stone {
  grid-area: place;
  position: relative;
  z-index: 3;
  inset: auto;
  transform: none;
  display: block;
  box-sizing: border-box;
  min-width: 0;
  width: min(190px, 100%);
  padding: 11px 34px 11px 16px;
  border-block: 1px solid #405f4f55;
  color: #365347;
  text-align: left;
  text-decoration: none;
}
.yy-atlas .place-stone[hidden] { display: none; }
.yy-atlas .place-stone span { font-size: 14px; letter-spacing: .28em; }
.yy-atlas .place-stone small {
  display: block;
  margin-top: 5px;
  color: #526c5d;
  font: 9px/1.5 var(--atlas-sans);
  letter-spacing: .14em;
}
.yy-atlas .place-stone b {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
}
.yy-atlas .place-stone:hover { background: #cdd0bc88; }
.yy-atlas .art-controls {
  grid-area: controls;
  position: relative;
  z-index: 4;
  inset: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(54%, 330px);
  margin-top: 9px;
  color: #536b55;
}
.yy-atlas .art-controls button { font-size: 19px; width: 36px; height: 34px; }
.yy-atlas .art-controls span { font: 9px/1 var(--atlas-sans); letter-spacing: .2em; white-space: nowrap; }

.yy-atlas .catalog-copy { padding: 0 3px 12px clamp(22px, 3.2vw, 36px); }
.yy-atlas .catalog-copy .eyebrow {
  display: block;
  margin: 0 0 22px;
  color: #707e64;
  font: 9px/1.5 var(--atlas-sans);
  letter-spacing: .25em;
}
.yy-atlas .catalog-copy h3 {
  margin: 0;
  font-size: clamp(25px, 2.7vw, 39px);
  font-weight: 400;
  letter-spacing: .13em;
  line-height: 1.5;
}
.yy-atlas .catalog-rule { width: 36px; height: 1px; margin: clamp(14px, 3svh, 25px) 0; background: #9b9d7c; }
.yy-atlas .catalog-copy p:not(.eyebrow),
.yy-atlas .catalog-copy dl,
.yy-atlas .catalog-copy blockquote {
  margin: 0;
  font-size: clamp(13px, 1.04vw, 16px);
  letter-spacing: .08em;
  line-height: 2.1;
}
.yy-atlas .catalog-copy dl, .yy-atlas .catalog-copy blockquote { margin-top: 15px; }
.yy-atlas .catalog-copy dt { color: #476457; font-size: .88em; }
.yy-atlas .catalog-copy dd { margin: 0 0 8px; }
.yy-atlas .catalog-copy blockquote { padding-left: 13px; border-left: 1px solid #929a7a66; color: #435b4e; }
.yy-atlas .catalog-copy small { display: block; margin-top: 24px; color: #697861; font-size: 9px; letter-spacing: .2em; }
.yy-atlas .catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  height: auto;
  padding: 8px 5% 15px;
  color: #697861;
  font-size: 9px;
  letter-spacing: .21em;
}
.yy-atlas .catalog-foot button { color: #4e6955; font-size: 11px; letter-spacing: .18em; padding: 8px 0; }
.yy-atlas-reading[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.yy-atlas-reading .book-header { padding-block: 22px; }
.yy-atlas-reading__body { overflow: auto; overscroll-behavior: contain; padding: 20px 7% 40px; }
.yy-atlas-reading__body article { max-width: 64em; margin: 0 auto 28px; line-height: 2.2; }
.yy-atlas-reading__body h3 { font-weight: 400; font-size: 19px; margin: 0 0 8px; }
.yy-atlas-reading__body p { white-space: pre-line; margin: 0; }
@media (max-width: 1000px) {
  .yy-atlas .catalog-layout { grid-template-columns: minmax(0, 22fr) minmax(0, 42fr) minmax(0, 36fr); }
  .yy-atlas .catalog-list { padding-right: 18px; }
}
@media (max-width: 680px) {
  .yy-atlas { --atlas-header: 100px; overflow: auto; }
  .yy-atlas[open] { display: block; }
  .yy-atlas .book-header { position: sticky; top: 0; z-index: 8; height: var(--atlas-header); padding: 14px 7%; }
  .yy-atlas .book-header .eyebrow { margin-bottom: 6px; }
  .yy-atlas .book-header h2 { font-size: 29px; }
  .yy-atlas .close-button { gap: 12px; }
  .yy-atlas .catalog-layout { display: flex; flex-direction: column; padding: 0; }
  .yy-atlas .catalog-list {
    position: sticky;
    top: var(--atlas-header);
    z-index: 7;
    display: flex;
    gap: 22px;
    padding: 6px 7%;
    background: var(--atlas-paper);
    border-bottom: 1px solid #8e977840;
    scrollbar-width: none;
  }
  .yy-atlas .catalog-list button { width: auto; flex: 0 0 auto; gap: 7px; min-height: 34px; padding: 4px 0; font-size: 12px; white-space: nowrap; border-color: transparent; }
  .yy-atlas .catalog-list button:is(.active, [aria-current="true"]) { border-color: #536f57; }
  .yy-atlas .catalog-art { flex: 0 0 auto; height: max(280px, 46svh); margin: 12px 7% 0; border: 0; padding-inline: 0; }
  .yy-atlas .catalog-media .stone-cutout { --stone-height: 31svh; }
  .yy-atlas .art-folio { right: 0; }
  .yy-atlas .place-stone { padding-block: 8px; width: min(175px, 100%); }
  .yy-atlas .place-stone span { font-size: 12px; }
  .yy-atlas .place-stone small { margin-top: 3px; }
  .yy-atlas .art-controls { width: 52%; margin-top: 4px; }
  .yy-atlas .catalog-copy { overflow: visible; padding: 18px 9% 23px; }
  .yy-atlas .catalog-copy .eyebrow { margin-bottom: 8px; }
  .yy-atlas .catalog-copy h3 { font-size: 29px; }
  .yy-atlas .catalog-foot { padding: 10px 9% 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .yy-atlas[open] { animation: none; }
}
