/* V-FORGE illustrated archive: preserve each complete sheet and its proportions. */
.archive-directory .unit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.archive-directory .unit-item{padding:0;min-height:0;justify-content:flex-start;overflow:hidden;scroll-margin-top:30px}
.archive-sheet{position:relative;display:block;width:100%;aspect-ratio:9/10;background:#090a0c;overflow:hidden}
.archive-sheet img{display:block;width:100%;height:100%;object-fit:contain;transition:filter .2s}
.archive-sheet:hover img{filter:brightness(1.09)}
.archive-sheet:focus-visible{outline:3px solid #e6be76;outline-offset:-3px}
.sheet-open{position:absolute;right:10px;bottom:10px;padding:10px 12px;background:#080b0cec;border:1px solid #a68c6080;color:#eee7d9;font:10px/1.3 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.sheet-caption{padding:20px 20px 23px}
.archive-directory .unit-item h3{font-size:26px;line-height:1.15;margin:15px 0 12px}
.archive-directory .unit-item.special{background:linear-gradient(145deg,#251e2c,#101415);border-color:#b3a0c055}
.archive-directory .directory-tools{align-items:flex-start;gap:20px;flex-wrap:wrap}
.archive-directory .unit-filters{display:flex;flex-wrap:wrap;gap:8px}
.sheet-count{color:#bcb3a4;font:12px/1.5 system-ui,sans-serif;margin:8px 0 24px}
.sheet-viewer{width:min(94vw,1250px);height:94dvh;max-height:94dvh;max-width:none;padding:0;border:1px solid #b4915a;background:#090b0e;color:#eee7d9;overflow:hidden}
.sheet-viewer::backdrop{background:#030507ed}
.sheet-viewer[open]{display:flex;flex-direction:column}
.sheet-viewer-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 18px;background:#0f1215;border-bottom:1px solid #b4915a55;flex-shrink:0}
.sheet-viewer-bar h2{font:normal 25px/1.15 Georgia,serif;margin:0}
.sheet-viewer-bar>div{display:flex;align-items:center;gap:14px}
.sheet-viewer-bar a{color:#e0bb7f;font:12px/1.4 system-ui,sans-serif}
.sheet-viewer-bar button{min-height:44px;padding:9px 14px;border:1px solid #b4915a;background:transparent;color:#eee7d9;font:12px system-ui,sans-serif;cursor:pointer}
.sheet-viewer-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;background:#090b0e}
.sheet-viewer-scroll img{display:block;width:100%;height:auto;max-width:none;margin:0 auto}
html.sheet-viewer-open{overflow:hidden}
@media(max-width:1050px){.archive-directory .unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.archive-directory .unit-grid{grid-template-columns:minmax(0,1fr);gap:24px}.archive-directory .unit-filters{width:100%}.archive-directory .unit-filters button{flex:1 1 calc(50% - 8px);min-height:44px}.sheet-viewer{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0}.sheet-viewer-bar{align-items:flex-start;padding:12px;gap:12px}.sheet-viewer-bar h2{font-size:21px;max-width:42%}.sheet-viewer-bar>div{gap:10px}.sheet-viewer-bar a{max-width:95px}.sheet-caption{padding:18px}.archive-directory .unit-item h3{font-size:27px}}
@media(prefers-reduced-motion:reduce){.archive-sheet img{transition:none}}
