
.atlas{max-width:1390px;margin:0 auto;padding:28px 24px 90px;line-height:1.6;color:var(--ink,#172d3c)}
.atlas a{overflow-wrap:anywhere}.atlas h1,.atlas h2,.atlas h3{font-family:Georgia,serif;font-weight:400}
.atlas h1{font-size:clamp(2.4rem,4.8vw,4.2rem);line-height:1.1;margin:10px 0 17px}
.atlas .kicker{font:700 11px/1.4 system-ui,sans-serif;letter-spacing:.16em;color:var(--gold,#967b4e);text-transform:uppercase}
.atlas .intro{font-size:1.12rem;max-width:990px}.atlas .warning{max-width:1100px;border-left:4px solid #ba965d;background:var(--white,#fff);padding:16px 20px;margin:18px 0 26px;color:inherit}
.atlas .tabs{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}
.atlas .tabs a{display:inline-block;border:1px solid var(--line,#d8d0c4);padding:9px 12px;text-decoration:none;color:inherit;background:var(--white,#fff);font:700 12px/1.4 system-ui,sans-serif}
.atlas .tabs a:hover{text-decoration:underline}
.atlas .atlas-tools{background:var(--white,#fff);color:var(--ink,#192e3d);border:1px solid var(--line,#d3c9b9);padding:18px;display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(135px,1fr));gap:14px}
.atlas .atlas-tools label{font:700 12px/1.4 system-ui,sans-serif;display:block}
.atlas .atlas-tools :is(input,select){display:block;margin:6px 0 0;width:100%;min-height:43px;padding:9px;border:1px solid #bcae99;background:var(--paper,#fcfaf4);color:var(--ink,#192e3d);font:400 14px/1.4 system-ui,sans-serif}
.atlas .atlas-tools :is(input,select):focus-visible,.atlas button:focus-visible{outline:3px solid #b18f55;outline-offset:2px}
.atlas .atlas-status{font-size:13px;margin:17px 0;color:inherit}
.atlas .count-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;border-top:1px solid var(--line,#d6ccbe);padding:16px 0 13px;margin-top:10px}
.atlas .count-bar h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:0}
.atlas .count-bar p{font-size:12px;margin:0}
.atlas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.atlas-card{background:var(--white,#fff);color:var(--ink,#1c2f3f);border:1px solid var(--line,#d1c6b9);display:flex;flex-direction:column;overflow:hidden;min-width:0}
.atlas-card .atlas-image{position:relative;width:100%;height:auto;aspect-ratio:6/5;background:#ebe5d8;color:#283a43;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-bottom:1px solid #c8bca7;cursor:zoom-in;overflow:hidden}
.atlas-card .atlas-image img{height:100%;width:100%;object-fit:contain}
.atlas-card .no-image{padding:20px;text-align:center;font:600 13px/1.5 system-ui,sans-serif;max-width:285px}
.atlas-card .no-image span{font-size:40px}
.atlas-card .folio-stamp{position:absolute;left:10px;top:10px;background:#193043eb;color:white;font:700 10px/1.3 system-ui,sans-serif;letter-spacing:.07em;padding:6px 9px}
.atlas-card .atlas-fallback{padding:20px;font:600 12px/1.6 system-ui,sans-serif;text-align:center}
.atlas-record{padding:18px;display:flex;flex-direction:column;flex:1}
.atlas-record .atlas-kind{font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#876b43;margin:0 0 6px}
.atlas-record h3{font-size:1.28rem;line-height:1.3;min-height:55px;margin:0 0 8px}
.atlas-record dl{display:grid;grid-template-columns:1fr;gap:0;margin:11px 0 15px}
.atlas-record dl>div{display:grid;grid-template-columns:97px 1fr;gap:6px;font-size:12px;border-top:1px solid var(--line,#dcd3c9);padding:7px 0}
.atlas-record dt{font-weight:700;opacity:.79}.atlas-record dd{margin:0;overflow-wrap:anywhere}
.atlas-record .atlas-method{margin:auto 0 12px;font-size:12px;font-style:italic;line-height:1.5;opacity:.83}
.atlas-record .atlas-links{display:flex;flex-wrap:wrap;gap:8px}
.atlas-record .atlas-links :is(button,a){font:700 12px/1.35 system-ui,sans-serif;text-decoration:none;border:1px solid #ae9570;border-radius:2px;padding:10px 11px;color:inherit;background:transparent}
.atlas-record .atlas-links button{background:#20384b;color:#fff;border-color:#20384b;cursor:pointer}
.atlas-record .atlas-links a:hover{text-decoration:underline}
.atlas .atlas-footnotes{border-top:1px solid var(--line,#cdbda7);margin-top:35px;padding-top:22px;font-size:.92rem}
.atlas .atlas-footnotes h2{font-size:1.5rem}
.atlas .atlas-load{margin:28px auto;display:block;padding:13px 25px;background:var(--white,#fff);color:var(--ink,#20384b);border:1px solid #a99167;font:700 13px/1.3 system-ui,sans-serif;cursor:pointer}
.atlas [hidden],.atlas-dialog [hidden]{display:none!important}
.atlas-dialog{box-sizing:border-box;width:min(1400px,96vw);max-width:96vw;max-height:95vh;margin:auto;padding:0;border:1px solid #a8987b;background:var(--paper,#f8f5ee);color:var(--ink,#213746);box-shadow:0 18px 90px #0009}
.atlas-dialog::backdrop{background:#0d1720cc}
.atlas-dialog .viewer-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 18px;background:var(--white,#fff);border-bottom:1px solid #a99980}
.atlas-dialog .viewer-header strong{font:600 15px/1.3 Georgia,serif}
.atlas-dialog .viewer-header .controls{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.atlas-dialog button{padding:9px 12px;min-width:38px;border:1px solid #b8a88e;border-radius:3px;background:transparent;color:inherit;cursor:pointer;font:700 12px/1.3 system-ui,sans-serif}
.atlas-dialog button:hover{background:#e7dcc9;color:#213746}
.atlas-dialog button:focus-visible{outline:3px solid #b39353;outline-offset:1px}
.atlas-dialog .viewer-body{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(330px,.95fr);max-height:calc(95vh - 62px)}
.atlas-dialog .viewer-stage{min-height:350px;position:relative;overflow:hidden;background:#ded6c8;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:grab;user-select:none}
.atlas-dialog .viewer-stage:active{cursor:grabbing}
.atlas-dialog .viewer-stage img{object-fit:contain;width:auto;height:auto;max-width:100%;max-height:calc(95vh - 95px);pointer-events:none;will-change:transform}
.atlas-dialog .viewer-stage .viewer-empty{padding:25px;max-width:420px;text-align:center;color:#213746}
.atlas-dialog .viewer-details{overflow-y:auto;padding:20px 22px 28px;background:var(--paper,#f8f5ee)}
.atlas-dialog .viewer-details h2{font:normal clamp(1.4rem,2.5vw,2rem)/1.18 Georgia,serif;margin:0 0 5px}
.atlas-dialog .viewer-details .sub{font-size:12px;font-weight:700;margin:0 0 15px}
.atlas-dialog .viewer-details dl{display:grid;grid-template-columns:minmax(110px,34%) minmax(0,1fr);gap:8px 12px;margin:15px 0}
.atlas-dialog .viewer-details dt,.atlas-dialog .viewer-details dd{padding:0 0 9px;border-bottom:1px solid #cdbda9;overflow-wrap:anywhere;font:400 13px/1.5 system-ui,sans-serif}
.atlas-dialog .viewer-details dt{font-weight:700}
.atlas-dialog .viewer-details dd{margin:0}
.atlas-dialog .source-buttons,.atlas-dialog .viewer-details .actions{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0}
.atlas-dialog .source-buttons a{font:700 12px/1.3 system-ui,sans-serif;color:inherit;border:1px solid #ad987a;padding:9px 11px;text-decoration:none}
.atlas-dialog .source-buttons a:hover{text-decoration:underline}
.atlas-dialog .viewer-note{font-size:12px;line-height:1.5;border-left:3px solid #b59669;padding:8px 10px}
html[data-theme=dark] .atlas :is(.atlas-tools,.atlas-card,.atlas .warning,.tabs a){background:#283f53;color:#f1ede4;border-color:#82919a}
html[data-theme=dark] .atlas .atlas-tools :is(input,select){background:#30495e;color:#fff;border-color:#8499a7}
html[data-theme=dark] .atlas-record .atlas-kind{color:#dbc28f}
html[data-theme=dark] .atlas-dialog,.atlas-dialog:where([data-theme=dark]){background:#203649;color:#f2ede4}
html[data-theme=dark] .atlas-dialog :is(.viewer-header,.viewer-details){background:#293f52;color:#f2ede4}
html[data-theme=dark] .atlas-dialog .source-buttons a{color:#f2ede4}
@media(max-width:1080px){.atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas .atlas-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-dialog .viewer-body{grid-template-columns:1fr;overflow:auto}.atlas-dialog .viewer-stage{min-height:250px;height:48vh}.atlas-dialog .viewer-stage img{max-height:46vh}.atlas-dialog .viewer-details{overflow:visible}}
@media(max-width:640px){.atlas{padding:18px 12px 70px}.atlas-grid,.atlas .atlas-tools{grid-template-columns:1fr}.atlas-dialog .viewer-header{align-items:flex-start;flex-direction:column}.atlas-dialog .viewer-details dl{grid-template-columns:1fr}.atlas-dialog .viewer-details dt{padding-bottom:0;border:0}.atlas-dialog .viewer-details dd{padding-top:0}.atlas-dialog .viewer-stage{height:42vh}.atlas-dialog .viewer-stage img{max-height:40vh}}
@media print{.atlas .atlas-tools,.atlas-dialog .viewer-header .controls,.atlas .atlas-load{display:none!important}.atlas-dialog{width:100%;max-height:none;position:static;box-shadow:none}.atlas-dialog::backdrop{display:none}.atlas-dialog .viewer-body{display:block;max-height:none}.atlas-dialog .viewer-stage{max-height:50vh}.atlas-dialog .viewer-details{overflow:visible}.atlas-card{break-inside:avoid}.atlas-grid{grid-template-columns:repeat(2,1fr)}}
