/* Dark tactical layer; social icons and hero positioning remain unchanged. */
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader){color-scheme:dark;color:#e8e9e1;background-color:#141916;border-color:#67705c;border-top-color:#b52428;--modal-corner:#b9c5a0;box-shadow:0 24px 100px #000c,inset 0 0 0 4px #ffffff07}
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader)[open]{animation:tactical-window-in .34s cubic-bezier(.16,.8,.25,1) both}
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader)[open].is-closing{animation:tactical-window-out .21s ease-in both;pointer-events:none}
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader).is-closing::backdrop{animation:tactical-shade-out .21s ease-in both}
body #site-search-dialog :is(.ss-hint,.ss-status),body #registration-modal .note{color:#b9c1b0}
body #site-search-dialog #site-search-input{background:#0e120f;color:#f0f1eb;border-color:#727e65;box-shadow:inset 3px 0 #a4b58b}
body #site-search-dialog #site-search-input::placeholder{color:#a8b19d}
body #site-search-dialog .ss-results li{background:#20271f;border-color:#48513f;border-left-color:#94a47d}
body #site-search-dialog .ss-results p{color:#c1c8b8}
body #site-search-dialog .ss-results a,body #charter-viewer .charter-fallback a,body dialog.site-news-reader .news-reader-body a{color:#f3a4a7}
body #registration-modal .registration-content,body dialog.site-news-reader .news-reader-content{background:#171d17;color:#e8e9e1}
body #registration-modal .registration-content h2,body dialog.site-news-reader .news-reader-title{color:#eef0e8;border-color:#505d46;letter-spacing:.025em}
body #registration-modal .requisites>div{border-color:#414d39}
body #registration-modal .requisites dt{color:#bdc9a9}
body #charter-viewer .charter-fallback{background:#192019;color:#cbd1c2;border-color:#505d46}
body #charter-viewer #charter-frame{background:#171d17;color-scheme:normal}
body #registration-modal .registration-toolbar,body #charter-viewer .charter-toolbar,body dialog.site-news-reader .news-reader-toolbar{background:repeating-linear-gradient(135deg,#ffffff03 0 2px,transparent 2px 9px),#111611;border-bottom:1px solid #6f7a60}
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader) button,body #charter-viewer .charter-control{border-radius:2px;letter-spacing:.035em}
body dialog.photo-viewer .photo-zoom-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-left:auto}
body dialog.photo-viewer .photo-zoom-tools button{min-width:44px;min-height:44px;padding:6px 10px;font:14px/1.3 "Fira Code",monospace;background:#20291e;color:#edf1e7;border:1px solid #68765a}
body dialog.photo-viewer .photo-zoom-viewport{grid-column:2;grid-row:1;min-width:0;width:100%;height:min(62dvh,650px);overflow:hidden;background:#0c100c;position:relative;touch-action:pan-y;user-select:none}
body dialog.photo-viewer .photo-zoom-viewport>img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:center;will-change:transform}
body dialog.photo-viewer .photo-zoom-viewport.is-zoomed{cursor:grab;touch-action:none}
body dialog.photo-viewer .photo-zoom-viewport.is-dragging{cursor:grabbing}
body footer.site-footer{background:linear-gradient(120deg,#141914,#101210);border-top-color:#6f7a60}
body .site-footer .site-footer__group a{position:relative;border-radius:2px;transition:color .2s ease,background-color .2s ease,box-shadow .2s ease}
body .site-footer .site-footer__group a::after{content:"";position:absolute;left:10px;right:10px;bottom:3px;height:1px;background:linear-gradient(90deg,#b5c69a,transparent);transform:scaleX(0);transform-origin:left;transition:transform .25s ease;pointer-events:none}
body .site-footer .site-footer__group a:focus-visible::after{transform:scaleX(1)}
body .header .header__list a.header__list-link:not(.nav-join)::after,body .header .nav-dropdown>summary::after{height:2px;background:repeating-linear-gradient(90deg,#d7dfc8 0 12px,transparent 12px 16px);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
body main :is(a.text-link,.join-socials a,.gallery-album-link),body :is(.photo-viewer__bottom a,.site-footer__brand){transition:color .2s ease,text-decoration-color .2s ease,text-shadow .2s ease,box-shadow .2s ease}
body main :is(a.text-link,.join-socials a):focus-visible{outline:2px solid #b52428;outline-offset:4px}
@media(hover:hover) and (pointer:fine){
body .site-footer .site-footer__group a:hover{color:#edf2e4;background:#aabf8c12;box-shadow:inset 2px 0 #b7ca98;transform:none}
body .site-footer .site-footer__group a:hover::after{transform:scaleX(1)}
body .header .header__list a.header__list-link:not(.nav-join):hover,body .header .nav-dropdown>summary:hover{color:#e5ecd9;background:#a6b88b18;box-shadow:inset 0 0 0 1px #a6b88b30}
body main :is(a.text-link,.join-socials a,.gallery-album-link):hover{ text-decoration-color:#b52428;text-shadow:0 0 12px #b5242820;box-shadow:inset 0 -1px #b52428}
body :is(.photo-viewer__bottom a,.site-footer__brand):hover{color:#edf2e4;text-shadow:0 0 14px #c0d39d55}
body dialog.photo-viewer .photo-zoom-tools button:not(:disabled):hover{background:#3e4c33;border-color:#b9cc9c}
}
@keyframes tactical-window-in{0%{opacity:0;transform:translateY(12px) scale(.97);clip-path:inset(0 0 95% 0)}45%{opacity:1;clip-path:inset(0)}100%{opacity:1;transform:none;clip-path:inset(0)}}
@keyframes tactical-window-out{from{opacity:1;transform:none;clip-path:inset(0)}to{opacity:0;transform:translateY(8px) scale(.98);clip-path:inset(46% 0)}}
@keyframes tactical-shade-out{from{opacity:1}to{opacity:0}}
@media(max-width:720px){body dialog.photo-viewer .photo-zoom-viewport{grid-column:1/-1;height:55dvh}body dialog.photo-viewer .photo-viewer__top{flex-wrap:wrap}body dialog.photo-viewer .photo-zoom-tools{margin-left:0}}
@media(prefers-reduced-motion:reduce){body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader)[open],body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader).is-closing::backdrop{animation:none!important}body .site-footer .site-footer__group a,body .site-footer .site-footer__group a::after,body .header .header__list a.header__list-link::after,body .header .nav-dropdown>summary::after,body main :is(a.text-link,.join-socials a,.gallery-album-link),body :is(.photo-viewer__bottom a,.site-footer__brand){transition:none!important}}

/* Match primary navigation to the footer interaction. */
body .header .header__list a.header__list-link:not(.nav-join),body .header .nav-dropdown>summary{border-radius:2px;transition:color .2s ease,background-color .2s ease,box-shadow .2s ease}
body .header .header__list a.header__list-link:not(.nav-join)::after,body .header .nav-dropdown>summary::after{left:10px;right:10px;bottom:3px;height:1px;background:linear-gradient(90deg,#b5c69a,transparent);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
body .header .header__list a.header__list-link:not(.nav-join):focus-visible,body .header .nav-dropdown>summary:focus-visible{box-shadow:inset 2px 0 #b7ca98}
body .header .header__list a.header__list-link:not(.nav-join):focus-visible::after,body .header .nav-dropdown>summary:focus-visible::after{transform:scaleX(1)}
@media(hover:hover) and (pointer:fine){body .header .header__list a.header__list-link:not(.nav-join):hover,body .header .nav-dropdown>summary:hover{color:#edf2e4;background:#aabf8c12;box-shadow:inset 2px 0 #b7ca98;transform:none}body .header .header__list a.header__list-link:not(.nav-join):hover::after,body .header .nav-dropdown>summary:hover::after{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){body .header .header__list a.header__list-link:not(.nav-join),body .header .nav-dropdown>summary,body .header .header__list a.header__list-link:not(.nav-join)::after,body .header .nav-dropdown>summary::after{transition:none!important}}
