/* The room uses the existing gallery finishes; museum photographs retain their own colour. */
#armory-wing{background:var(--ground);color:var(--ink)}
.armory-heading{max-width:94rem;margin:auto;padding:clamp(1.3rem,3vw,2.6rem) clamp(1.2rem,4.4vw,5rem);display:flex;justify-content:space-between;align-items:end;gap:2rem}
.armory-heading h1{font-size:clamp(3.2rem,6vw,6rem);margin:.25rem 0 .7rem}
.armory-heading .place{font-size:.875rem}
.armory-heading p:not(.place){max-width:42ch;font-size:1rem;color:var(--muted)}
.armory-heading .soft-link{flex-shrink:0}
.armory-room{max-width:100rem;margin:auto}
.armory-room>img{width:100%;height:auto;aspect-ratio:3/1;object-fit:cover}
.armory-room figcaption{display:flex;gap:1rem;justify-content:space-between;padding:.55rem clamp(1.2rem,4.4vw,5rem);color:var(--muted);font-size:.875rem;border-bottom:1px solid var(--rule)}
html[data-hall-light=night] .armory-room>img{filter:brightness(.76) saturate(.88)}
.armory-content{max-width:90rem;margin:auto;padding:clamp(1.5rem,4vw,3.5rem) clamp(1.2rem,4.4vw,5rem)}
.armory-intro{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;padding-bottom:1.7rem;border-bottom:1px solid var(--rule)}
.armory-intro p{max-width:63ch;font-size:1rem;line-height:1.7}
.armory-intro .button{flex-shrink:0;border-color:var(--accent)}
.armory-filter-pane{margin:1.5rem 0 1.7rem;padding:1rem 1.2rem;background:color-mix(in srgb,var(--surface) 92%,transparent);border:1px solid var(--rule);box-shadow:inset 0 1px #ffffff50}
.armory-family-buttons{display:flex;flex-wrap:wrap;gap:.35rem .6rem;margin-bottom:1.05rem}
.armory-family-buttons button{min-height:44px;padding:.5rem .65rem;border-bottom:2px solid transparent;font-size:.94rem}
.armory-family-buttons button[aria-pressed=true]{border-color:var(--accent);background:var(--ground);font-weight:650}
.armory-search{display:flex;gap:.8rem;align-items:end}
.armory-search label{display:grid;gap:.3rem;flex:1;font-size:.9rem;font-weight:550}
.armory-search input{font-size:1rem;background:var(--surface);width:100%;min-height:46px;padding:.55rem .75rem;border:1px solid var(--rule);border-radius:0}
.armory-search input::placeholder{color:var(--muted);opacity:1}
.armory-display-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.armory-display-heading h2{font-size:clamp(1.8rem,3.5vw,2.5rem)}
.armory-display-heading p{font-size:.9rem;color:var(--muted)}
.armory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem 1.35rem}
.armory-object{min-width:0}
.armory-object-open{width:100%;display:block;padding:0;text-align:left;color:inherit}
.armory-case{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;min-width:0;height:clamp(14rem,25vw,22rem);padding:1.2rem;background:#f7f7f6;border:1px solid #95816a;box-shadow:inset 0 0 0 4px #e4e1da,inset 0 -2px 14px #94bfdb28;overflow:hidden}
.armory-case>img{width:100%;height:100%;object-fit:contain}
.armory-case::after{content:'';position:absolute;left:9%;right:9%;bottom:4px;height:2px;background:linear-gradient(90deg,transparent,#8bc7ee,#e6f7ff,#8bc7ee,transparent);box-shadow:0 -2px 9px #6bafeaa8;pointer-events:none}
.armory-object-open:is(:hover,:focus-visible) .armory-case{border-color:var(--accent);box-shadow:inset 0 0 0 4px #e4e1da,0 2px 12px #0f243b16}
.armory-object-caption{display:grid;gap:.25rem;padding:.8rem .15rem 0}
.armory-kind{font-size:.875rem;color:var(--muted)}
.armory-object-name{font:400 clamp(1.4rem,2vw,1.85rem)/1.2 var(--serif);letter-spacing:-.02em}
.armory-object-open:is(:hover,:focus-visible) .armory-object-name{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
.armory-date{font-size:.96rem}.armory-culture{font-size:.9rem;color:var(--muted)}
.armory-undated{font-size:.875rem;color:var(--accent);margin-top:.2rem}
.armory-record-plate{display:grid;align-content:center;gap:1rem;padding:1rem;text-align:center;color:#31465b;min-height:12rem}
.armory-record-plate>span{font:400 1.8rem/1.15 var(--serif)}
.armory-record-plate>p{font-size:.94rem}
.armory-empty{padding:2rem 0;max-width:50ch}.armory-empty p{margin-bottom:.6rem}
.armory-chronology{margin-top:1.6rem;font-size:.9rem;color:var(--muted);max-width:88ch}
.armory-book{display:grid;grid-template-columns:minmax(9rem,14rem) minmax(0,1fr);align-items:center;gap:clamp(1.3rem,4vw,4rem);margin-top:3.5rem;padding-top:2.5rem;border-top:1px solid var(--rule)}
.armory-book-cover{padding:0;border:1px solid var(--rule);box-shadow:4px 5px 0 color-mix(in srgb,var(--rule) 70%,transparent);background:white}
.armory-book h2{font-size:clamp(1.9rem,3.5vw,3rem);margin:.5rem 0 .9rem}
.armory-book p{max-width:58ch;margin-bottom:1rem}.armory-book .place{font-size:.875rem}
.armory-book-meta{color:var(--muted);font-size:.94rem}
.armory-book-actions{display:flex;flex-wrap:wrap;gap:.6rem 1.4rem;align-items:center}
.armory-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--rule);padding:0;width:min(72rem,94vw);max-width:94vw;max-height:92dvh;overflow:auto}
.armory-dialog::backdrop{background:#061321d9}
.armory-dialog>header{position:sticky;top:0;z-index:2;background:var(--surface);padding:.9rem 1.2rem;display:flex;justify-content:space-between;align-items:center;gap:1.3rem;border-bottom:1px solid var(--rule)}
.armory-dialog>header h2{font-size:clamp(1.4rem,3vw,2rem);line-height:1.16}
.armory-dialog>header button{min-height:44px;padding:.4rem .65rem;text-decoration:underline;font-size:1rem;flex-shrink:0}
.armory-detail-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(1.2rem,3vw,3rem);padding:clamp(1rem,3vw,2rem)}
#armory-detail-image>img{height:min(58vh,33rem);width:100%;object-fit:contain;background:#f7f7f6;border:1px solid #c8c7c4;padding:.7rem}
#armory-detail-image figcaption{font-size:.875rem;line-height:1.5;color:var(--muted);padding-top:.65rem}
#armory-detail-image figcaption p+p{margin-top:.4rem}
#armory-detail-text>p{margin-bottom:1rem;font-size:1rem}
.armory-object-date{font:400 1.4rem/1.3 var(--serif)!important}
.armory-metadata{display:grid;grid-template-columns:minmax(6rem,.75fr) minmax(0,1.3fr);gap:.65rem 1rem;font-size:.94rem;padding:1rem 0;border-top:1px solid var(--rule)}
.armory-metadata dt{color:var(--muted)}.armory-metadata dd{margin:0;overflow-wrap:anywhere}
.armory-evidence{border-top:1px solid var(--rule);padding-top:1rem}.armory-evidence h3{font-size:1.3rem;margin-bottom:.55rem}.armory-evidence p{font-size:1rem}
.armory-date-note{padding:.8rem;border-inline-start:3px solid var(--accent);background:var(--ground);margin-top:1rem}
#armory-reader{width:min(84rem,96vw);max-width:96vw;height:94dvh;max-height:94dvh;overflow:hidden}
.armory-reader-actions{display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding:.45rem 1.2rem;border-bottom:1px solid var(--rule);font-size:.9rem}
#armory-book-frame{width:100%;height:calc(94dvh - 9rem);min-height:18rem;border:0;background:#565656}
#armory-passage{background:var(--dark);color:var(--silver)}
#hall-passage #gallery-passage,.sculpture-passage #gallery-passage,#armory-passage #gallery-passage{grid-template-columns:repeat(3,minmax(0,1fr))}
#gallery-passage a[data-room=Armory]::before{background-size:cover;background-position:center}
.armory-directory-card .wing-entry img{object-position:center}
@media(prefers-reduced-motion:no-preference){html:not([data-light-paused]) .armory-case::after{animation:armory-case-light 5s ease-in-out infinite alternate}@keyframes armory-case-light{from{opacity:.5;transform:translateX(-2%)}to{opacity:1;transform:translateX(2%)}}}
@media(max-width:850px){.armory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.armory-case{height:18rem}.armory-detail-body{grid-template-columns:1fr}#armory-detail-image>img{height:43vh}.armory-heading{align-items:start}.armory-heading .soft-link{font-size:.9rem}}
@media(max-width:560px){.armory-heading{display:block}.armory-heading .soft-link{margin-top:.4rem}.armory-room>img{aspect-ratio:1.7;object-position:51% center}.armory-room figcaption{display:block;font-size:.875rem}.armory-room figcaption span+span{display:block;margin-top:.2rem}.armory-intro{display:block}.armory-intro .button{margin-top:.9rem}.armory-filter-pane{padding:.8rem}.armory-family-buttons{gap:.2rem}.armory-family-buttons button{font-size:.9rem;padding:.45rem .5rem}.armory-search{align-items:end;gap:.5rem}.armory-search .text-button{font-size:.9rem}.armory-grid{gap:1.5rem .75rem}.armory-case{height:14rem;padding:.65rem}.armory-object-name{font-size:1.35rem}.armory-date,.armory-culture{font-size:.875rem}.armory-display-heading{display:block}.armory-display-heading p{margin-top:.4rem}.armory-book{grid-template-columns:1fr}.armory-book-cover{max-width:11rem}.armory-dialog>header{padding:.55rem .8rem}.armory-reader-actions{padding:.5rem .8rem;flex-wrap:wrap}.armory-metadata{grid-template-columns:1fr;gap:.2rem}.armory-metadata dd{margin-bottom:.6rem}#hall-passage #gallery-passage,.sculpture-passage #gallery-passage,#armory-passage #gallery-passage{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:350px){.armory-grid{grid-template-columns:1fr}.armory-case{height:19rem}}
@media(forced-colors:active){.armory-family-buttons button[aria-pressed=true]{border:2px solid Highlight}.armory-case::after{display:none}}

.armory-intro-actions{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;flex-shrink:0}
#armory-reader-fallback{height:calc(94dvh - 10rem);overflow:auto;padding:1.3rem;display:grid;justify-items:center;align-content:start;gap:1rem;text-align:center}
#armory-reader-fallback img{height:min(48vh,27rem);width:auto;max-width:100%;object-fit:contain;background:white}
