/* R03 scoped additive controls. R06 artwork and all editorial text preserved. */
.r03-library-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem 1.25rem;background:#0e1838;color:#f4efe4;padding:.7rem 1rem;font:400 .9rem/1.6 system-ui,sans-serif;border-bottom:1px solid #d5ac5c}
.r03-library-nav a{color:#f4efe4;text-underline-offset:.2em;padding:.35rem 0}.r03-library-nav a:focus-visible,.r03-zoom:focus-visible{outline:3px solid #b98935;outline-offset:3px}
.r03-zoom{display:inline-block;background:#f4efe4;color:#332e24;border:1px solid #9b8354;border-radius:3px;font:inherit;cursor:pointer;padding:.5em 1em;margin:.5em 0;min-height:44px}
.r03-viewer{max-width:min(96vw,1200px);max-height:94vh;background:#0e1838;color:#f4efe4;border:1px solid #d5ac5c;padding:1rem;overflow:auto}
.r03-viewer::backdrop{background:rgba(5,10,22,.88)}.r03-viewer img{display:block;max-width:100%;max-height:72vh;object-fit:contain;margin:auto}.r03-viewer p{max-width:80ch;margin:.8rem auto;font-size:.9rem;line-height:1.6}.r03-viewer button{float:right;background:#f4efe4;color:#222;min-height:44px;padding:.4em .9em;border:0;cursor:pointer;margin-bottom:.6em}.r03-viewer figure{clear:both;margin:0}
@media(prefers-reduced-motion:reduce){.r03-viewer,.r03-zoom{animation:none!important;transition:none!important}}

/* Match the R02 temple's optional cross-document dissolve during library navigation. */
@media (prefers-reduced-motion:no-preference) {
  @view-transition { navigation:auto }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration:.42s }
}
.r03-viewer { box-sizing:border-box; width:min(96vw,1200px); max-height:94dvh }
.r03-viewer-controls { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:flex-end; margin-bottom:.6rem }
.r03-viewer .r03-viewer-controls button { float:none; margin:0; font:inherit; border:1px solid #ad966b }
.r03-viewer [aria-pressed="true"] { box-shadow:inset 0 0 0 2px #635031 }
.r03-viewer :is(a,button,[tabindex]):focus-visible { outline:3px solid #ebc775; outline-offset:2px }
.r03-viewer-frame { max-height:65vh; max-height:65dvh; overflow:auto; overscroll-behavior:contain }
.r03-viewer .r03-viewer-frame img { width:auto; height:auto; max-height:65vh; max-height:65dvh }
.r03-viewer .r03-actual-size img { max-width:none; max-height:none }
.r03-viewer figcaption { max-width:80ch; margin:.8rem auto 0; color:#f4efe4; font:400 .95rem/1.6 system-ui,sans-serif }
.r03-viewer figcaption > span { display:block; color:inherit }
.r03-viewer figcaption a { color:#efd08f; text-underline-offset:.2em }

/* Optional movement list in the existing library navigation. */
.r03-library-nav .r04-suite-links { max-width:100%; color:inherit; font:inherit }
.r04-suite-links summary { cursor:pointer; padding:.35rem 0 }
.r04-suite-links summary:focus-visible { outline:3px solid #b98935; outline-offset:3px }
.r04-suite-links ol { margin:.35rem 0; padding:0; list-style:none }
.r04-suite-links li + li { margin-top:.3rem }
